Currently under construction for additional features
Full-stack ecommerce application built with MERN stack. This project has two features:
- Buyers register and browse the marketplace while interacting with products across different categories.
- Admins control and manage the marketplace items and customer acounts.
- Nodejs - The runtime environment of the application
- Reactjs - Component based UI library
- MongoDB - NoSQL database
- Expressjs - Framework to handle routes and requests
- Mongoose - MongoDB object modeling tool to model the database schema
After you cloned the repository do not start the application. To run the application fully you need to create a database and collection and provide your own database URI.
-
Go to MongoDB website and create a database and a collection named 'Items' and insert the data in the
server/ItemsCollection.json
file as a document. -
You can also downlod mongodb and create a database named Ecommerce and add document -Item
-
After that just insert the json file that is provided in server/ItemsCollection.json
-
Create a .env file in the server folder and type the following
NODE_ENV = development
PORT = 5000
MONGO_URI = mongodb+srv://<your uri from mongodb website>
OR
MONGO_URI = Your_mongodb_connection
Ex:- mongodb://127.0.0.1:27017/Ecommerce
- Before running this project make sure you installed all the packages required
- For server side :- cd server npm install
- For client side :- cd client npm install
After this you can run the project locally:
- To run the front end
cd client
npm start
- To run the back end
cd server
npm run dev
TIP: Run both in split terminal so that you can see both ends running