- This project is made for the distribution of Bakery Products.
- Technologies used are MERN Stack, JWT Auth, Rest API, etc
Warning: The Images and Banners needs to be created and feeded before running the program
- CPU: 4core
- RAM: 4GB
- Storage: HDD
Project can run on both Windows and Linux Servers
- Clone or download the project.
- In indiviual folders(frontend,backend) install the node modules using
npm install .
- Then go to the MongoDB Atlas, create an account then a cluster and get the API token
- Create a
.env
file in backend folder with an entry:
MONGO_DB_URI = "<your-mongodb-token>"
ADDITIONALLY if running locally use to prevent CORS errors and port conflict
PORT = 3120
CORS_URL = "http://localhost:3000"
- Now in frontend we will do the same by creating
.env
file with values
# Backend URL [if running locally use "http://localhost:3120"]
REACT_APP_BACKEND_URL="<your-backend-url>"
REACT_APP_GST_PERCENT = 18
REACT_APP_SHIPPING_CHARGE=50
-
For banners make a "public/banners" folder inside frontend and add 3 images named
1.png
,2.png
&3.png
-
Place a Logo in the public folder named
logo.png
-
Create a
admin_emails.json
in backend and add an email to make Admin of. -
Now run the backend by going to terminal and typing
npm run server
And for frontend by typing
npm run start
- Sign up with the admin email and add Products.