Skip to content

MohamedAminGrami/e-shop-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Setup Guide

1. Install Dependencies

Frontend

npx create-react-app furniture-shop
cd furniture-shop
npm install react-router-dom axios react-toastify

Backend

mkdir backend
cd backend
npm init -y
npm install express cors mongoose dotenv

2. Configure MongoDB

  1. Install MongoDB and start the service.
  2. Create a .env file in the backend directory:
MONGO_URI=mongodb://localhost:27017/furnitureShop

3. Run the Backend

cd backend
node server.js

4. Seed the Database

cd backend
node seed.js

5. Run the Frontend

cd furniture-shop
npm start

6. Project Structure

/furniture-shop (Frontend)
  /src
    /pages
      HomePage.js
      ShopPage.js
    /components
      Footer.js
  App.js

/backend (Backend)
  server.js
  seed.js
  .env

About

A React Shop website that allows the user to shop with an admin dashboard attached to it

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors