Skip to content

denysmalieiev/eCommerce_Web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-Commerce Web Application using MERN Stack and Microservices Architecture

Description

This is a web application for an e-commerce store that sells games. It is built using the MERN stack and Microservices Architecture. It has a user interface for the customers to view the products and add them to their cart. The application is built using the Microservices Architecture, where each service is a separate Node.js application.

Installation

Use the package manager npm to install dependencies.

npm install

Usage

  1. Create a .env file in the root directory and add the following environment variables (replace all #### with your own values):
PORT=####
MONGO_USERNAME=####
MONGO_PASSWORD=####
MONGO_CLUSTER=####
MONGO_DBNAME=####
ACCESS_TOKEN=####
  1. Run the following command to start the application:
npm run dev
  1. Open the following URL in your browser:
http://localhost:<port_no>/
  1. Or you can use docker-compose to run the application:
docker-compose up
  1. Show the running containers:
docker ps
  1. Get the container ip address:
docker inspect <container_id> | grep "IPAddress"
  1. Open the following URL in your browser:
http://<container_ip_address>:<port_no>/
  1. To run the frontend application, run the following command:
cd frontend
npm install
npm run dev
  1. Open the following URL in your browser:
http://localhost:5173/

Products json file

Technologies

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published