/Ecommerce

Primary LanguageJavaScript

Table of Contents

Requirements

Technologies Used

How to run this project

Screenshots

Requirements

nodeJS <=v16.15.0

npm <=v8.5.5

MongoDB database

Technologies Used

Frontend

1. NodeJS
2. ReactJS
3. React Router
4. Bootstrap

Backend

1. NodeJS
2. Express
3. Mongoose

Database

1. MongoDB Atlas

Misc. Service

1. Python (batch service)
2. Postman for testing RESTful API

How to run this project

For this project to work you must run both the NodeJS-Backend and React-Frontend

React-Frontend

  1. Open a terminal session

  2. Clone this project using git clone

  3. Navigate to React-Frontend

  4. Run npm install

  5. Run npm start

NodeJS-Backend

  1. Open a terminal session

  2. Navigate to NodeJS-Backend

  3. Run npm install

  4. Create a .env file in the root of NodeJS-Backend

  5. Create a value called MONGO_URI_CUSTOMER_INFO and give the link for your users database

    1. This database should have an orders, payments, and shippings collection
  6. Create a value called MONGO_URI_INVENTORY and give the link for your inventory database

    1. This database should have an actualitems and items collection

    2. Navigate to NodeJS-Backend->data->phoneSpecifications.json for some example inventory items

  7. Run npm start

  8. Navigate to localhost:3000 after running both frontend and backend to view the site

Python Batch

  1. To run once open a terminal session

  2. Navigate to Batch-Service

  3. pip install dotenv

  4. pip install pymongo

  5. Copy .env from NodeJS-Backend

  6. Run **python3 basic_batch.py

Screenshots

Shopping Page

image image

About Page

image

Contact Us Page

image

Cart Page

image

Shipping Page

image

Payment Page

image

Review Page

image

Confirmation Page

image