Skip to content
/ yolo Public
forked from Vinge1718/yolo

Nodejs, Express API and MongoDB e-commerce feature project

Notifications You must be signed in to change notification settings

Ebenezr/yolo

 
 

Repository files navigation

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)

Screenshots

App

image

Docker image client

image

Docker image server

image

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 75.0%
  • CSS 20.6%
  • HTML 2.6%
  • Dockerfile 1.1%
  • Other 0.7%