A complete e-commerce platform using CRUD functions and connects the system to a database of MongoDB (Document database). Created a full-stack platform using JavaScript. The frontend was created using React and the backend was created using NodeJS, Express, MongoDB. Then I used Axios and Redux to link my backend with my frontend. I also used Postman to test my end points.
Programming Languages/Frameworks:
- JavaScript
- React
- Redux
- NodeJS
- Express
- MongoDB
- Postman
- Axios
-
Make sure you have these installed
-
Clone this repository into your local machine using the terminal
> git clone https://github.com/mohamedmostafa13/e-commerce3.git
-
backend setup (DO NOT cd to backend) (running on port you decide)
> npm install
-
frontend setup (running on port 3000)
> cd frontend
> npm install
-
Insert data into the MongoDB database
-
Start MongoDB server
> mongod
-
Enter mongo shell
> mongo
-
Insert data into the MongoDB database
> npm run data:import
-
-
Rename .env-example to .env and set these values
NODE_ENV = development PORT = <> MONGO_URI = <> JWT_SECRET = <> PAYPAL_CLIENT_ID = <>
-
Runs both frontend and backend (cd to ROOT of project)
> npm run dev
Enjoy!