- Node.js (v14.x or later)
- npm (v6.x or later)
- MongoDB (local installation or Atlas account)
-
Clone the repository
git clone https://github.com/your-username/Shop-Management-System.git cd Shop-Management-System -
Install all dependencies with a single command
npm run install-all -
Create a .env file in the backend directory
cd backend # Create and edit .env file with your MongoDB connection string echo "MONGODB_URI=your_mongodb_connection_string" > .env cd ..
-
Start both backend and frontend with a single command
npm start -
Access the application
- Backend API: http://localhost:5000
- Dashboard: http://localhost:3000
If you prefer to run services separately:
-
Start the backend server
cd backend npm start -
Start the dashboard in a new terminal
cd dashboard npm start
npm install react-bootstrap
npm install react-router-dom
npm install react-icons --save
npm install axios
run these commands:
npm install
npm audit fix
npm install -g nodemon
nodemon src/index.js
then open this in browser to test: http://localhost:3000/