Giter Site home page Giter Site logo

cc_monolithic_to_micro_services's Introduction

CC_Monolithic_to_Micro_Services

Overview

This repository showcases the transformation of an e-commerce platform from a monolithic architecture to a microservices-based architecture using the MERN stack. The application was initially built as a single, unified codebase and has now been divided into four distinct, scalable microservices, each encapsulated in Docker and orchestrated using Kubernetes. This enhances scalability, maintainability, and deployment flexibility.

Architecture

Microservices Description

  • Frontend Service: Manages the user interface and interaction.
  • User Service (UC1): Handles user authentication and profile management.
  • Product Service (UC2): Manages product inventory, descriptions, and details.
  • Order Service (UC3): Processes and tracks orders.

Technologies Used

  • CI/CD: For continuous integration and continuous deployment, enhancing the software delivery process.
  • MongoDB: Database for storing all application data.
  • Express.js: Backend framework used within Node.js.
  • React.js: Library for building the user interface.
  • Node.js: JavaScript runtime for executing the backend in JavaScript.
  • Docker: For containerizing each microservice.
  • Kubernetes: For automating deployment, scaling, and operations of application containers.

Getting Started

Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites required

  • Docker
  • Kubernetes (e.g., Minikube, Docker Desktop)
  • Node.js and npm

Installation

# Clone the repository
git clone https://github.com/ArunAK111/CC_Monolithic_to_Micro_Services.git
cd CC_Monolithic_to_Micro_Services

# Build Docker Images
cd frontend
docker build -t yourdockerhubusername/frontend:latest .
cd ../uc1
docker build -t yourdockerhubusername/uc1:latest .
cd ../uc2
docker build -t yourdockerhubusername/uc2:latest .
cd ../uc3
docker build -t yourdockerhubusername/uc3:latest .

# Deploy with Kubernetes
kubectl apply -f kubernetes.yaml

# Access the Application
kubectl get svc
# Note the external IP and port to access the frontend service

Contributors

cc_monolithic_to_micro_services's People

Contributors

arunak111 avatar anuragnkoppal avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.