Project Setup Guide
npx create-react-app furniture-shop
cd furniture-shop
npm install react-router-dom axios react-toastifymkdir backend
cd backend
npm init -y
npm install express cors mongoose dotenv- Install MongoDB and start the service.
- Create a
.envfile in thebackenddirectory:
MONGO_URI=mongodb://localhost:27017/furnitureShop
cd backend
node server.jscd backend
node seed.jscd furniture-shop
npm start/furniture-shop (Frontend)
/src
/pages
HomePage.js
ShopPage.js
/components
Footer.js
App.js
/backend (Backend)
server.js
seed.js
.env