Giter Site home page Giter Site logo

b201819-ms-event-sourcing's Introduction

b201819-ms-event-sourcing

This is an e-commerce application with a microservice-architecture and the event-sourcing pattern implemented. There are a total of 5 microservices which are:

  • Customer Service
  • Rating Service
  • Inventory Service
  • Order Service
  • Invoice Service

Requirements

  • Java 1.8+
  • NPM (version used in development is 6.4.1)
  • docker-compose (tested with v1.2.3)
  • docker (tested with v18.09)

Installation

First clone the JHipster Registry from their repository https://github.com/jhipster/jhipster-registry

$ git clone https://github.com/jhipster/jhipster-registry.git

Start the registry

$ cd jhipster-registry
$ mvnw (or ./mvnw with linux)

This application is using Kafka as an event store. Therefore kafka and docker has to be started. After docker is running you can run kafka with:

$ docker-compose -f kafka.yml up

(it is rare but it can happen that starting kafka fails, then just try again until there is no error message )

After the JHipster Registry and Kafka is running you can start the API Gateway and the microservices. It is recommended to start the API Gateway first. The first time running mvnw on the shop might fail. Just try again and it should work fine.

$ cd shop
$ mvnw (or ./mvnw with linux)
$ npm start

Start the microservices

$ cd customers/orders/ratings/invoices/inventory
$ mvnw (or ./mvnw with linux)

Setup

(Admin)

  • Once the application is running you can access it at http://localhost:9000.
  • Login as admin/admin
  • Create product categories
  • Create products and link them to categories

(Customer)

  • Register
  • Login (only possible after admin has activated the account)
  • Shop!

b201819-ms-event-sourcing's People

Contributors

ykoitzsch avatar

Watchers

James Cloos avatar  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.