GithubHelp home page GithubHelp logo

commerce-backend's Introduction

ECOMMERCE BACKEND

This project was created for study purposes and some points might not look exactly how a ecommerce really works. The project uses a microservice architecture and there is 5 microservices:

  • Orders
  • Clients
  • Products
  • Payments
  • Shipping

Each service has its own database, and there is a rabbitmq server connecting orders and payments microservices. The products microservice uses a cloudflare bucket to save the product images, using the aws s3 sdk to make the connection.

HOW TO RUN

The first requirement to get the services up on your machine is having docker installed on your computer, we will run all the services together with docker-compose

While i didnt founded any way to make it run with the docker commands we will need to enter in the folder of each service and run the following command:

  • cd ./orders-ms
  • mvn clean package -DskipTests
  • cd ..
  • cd ./payments-ms
  • mvn clean package -DskipTests
  • cd ..
  • cd ./clients-ms
  • mvn clean package -DskipTests
  • cd ..
  • cd ./products-ms
  • mvn clean package -DskipTests
  • cd ..
  • cd ./shipping-ms
  • mvn clean package -DskipTests
  • cd ..

This command will package the java application generation the /target folder and creating the jar of the application. After doing this we will need to move back to root folder of the submodule. With the docker installed/running input those following commands:

Build docker images of each service

  • docker-compose build

Create the containers of each service instantiated on our root docker-compose.yml

  • docker-compose up

You can find the postman collection on root folder too, the name of the file is collection.json.

BASIC FLUXOGRAM

Image of basic fluxogram

commerce-backend's People

Contributors

brunood07 avatar

Stargazers

 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.