sudo mongod
cd backend npm install npm start
cd frontend npm install npm start
I used this guide to unite my Express and React app.
This project was bootstrapped with Create React App.
All of the actions involving getting or putting data to the server are defined in this folder.
All components like view list or login/signup modal are displayed here. All the components of the web app are stored in the form of component.
All config data (server URI) etc. are stored here
All utility functions used commonly by many components are storeds here.
The entire frontend is rendered at index.html starting from index.js, which renders the Navbar.js file, which loads all the routes, which links all the components together.
This project was bootstrapped with Express generator. The routes for databases are stores in server.js
- Order: a many many relation between customer and product
- Product: that is created by the vendor
- User: maybe a customer or a vendor
customers.js- routes like view my orders, search for products, or simply edit my order. )all customer actionsusers.js- for login and logoutvendors.js- for create product, dispatch product, cancel product, etc. (all vendor actions)
Helper functions and data that is used to run the server.
Validation for each of the actions being performed in the routes mentioned above.
None