Skip to content

ykoitzsch/b201819-ms-shared-database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

b201819-ms-shared-database

This is an e-commerce application with a microservice-architecture and the shared-database 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)

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)

After the JHipster Registry 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!

The shared database can be looked up at http://localhost:8080/h2-console/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published