Ebenezr / yolo

Nodejs, Express API and MongoDB e-commerce feature project

Home Page:http://35.232.159.82:3000

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ecommerce Micorservices store

This project is an ecommerce microservices store built with a React frontend and an Express backend, using MongoDB as the database. It showcases the use of microservices architecture in building scalable ecommerce platforms. The frontend is built with React for a dynamic and responsive user interface, while the backend is powered by Express for handling API requests and MongoDB for data storage.

Table of Contents

Requirements

Make sure that you have the following installed:

  • node
  • npm
  • MongoDB and start the mongodb service with sudo service mongod start

Clone Repository

To clone the repository, run the following command in your terminal:

git clone https://github.com/Ebenezr/yolo.git

Installation

client

Navigate to the Client Folder:

cd client

Run the folllowing command to install the dependencies

 npm install

Run the folllowing to start the app

 npm start

Backend

Open a new terminal and run the same commands in the backend folder

 cd ../backend

Run the folllowing command to install the dependencies

 npm install

Run the folllowing to start the server

 npm start

Running with Docker Compose

If you have Docker installed, you can use Docker Compose to run the application:

docker-compose up

Running with Ansible

If you have Ansible installed, you can use it to automate the deployment of the application. Here's a basic example of how you might do this:

  1. First, install Ansible , Vagrant, Virtual Box and terraform on your local machine. You can do this with the following command:
sudo apt-get update
sudo apt-get install ansible vagrant virtualbox
  1. Run the playbook with the following command:
ansible-playbook execute_terraform.yml

Go ahead a nd add a product (note that the price field only takes a numeric input)

Running with k8s

Give execute permision to script deploy.sh

chmod +x deploy.sh

execute the scrip

./deploy.sh

Screenshots

App

image

Docker image client

image

Docker image server

image

About

Nodejs, Express API and MongoDB e-commerce feature project

http://35.232.159.82:3000


Languages

Language:JavaScript 74.8%Language:CSS 20.5%Language:HTML 2.6%Language:Dockerfile 1.3%Language:Shell 0.4%Language:HCL 0.4%