/oms-service

Primary LanguageJavaMIT LicenseMIT

Build Status Code Coverage JDK

Order Manager System

This service manages all orders

Requirements

  • Java 1.8
  • Maven
  • MySQL

Downstreams

Installation

Setup IDE

Install Lombok plugin

IntelliJ IDE

Menu preferences > plugins, type Lombok in the search field then click Install

Eclipse IDE

The installation procedure can be found here

Database Installation

Initialize the local database

$ mysql -uroot
...
mysql> CREATE DATABASE oms;

Install Code

Clone the code repository locally and build it.

$ git clone git@github.com:htchepannou/oms-service.git
$ cd oms-service
$ mvn clean install

This will generate the service binary target/oms-service.jar

Run the server

This allow to run the server locally on port 8080, using the local database and calling downstream services that are running remotely at Heroku.

$ java -jar target/oms-service.jar

Run the server locally

This allow to run the server locally on port 18083, using the local database and calling downstream services that are running on the locally.

  • Install and run all downstream services locally:

  • Run the server with local profile:

$ java -Dspring.profiles.active=local -jar target/oms-service.jar

License

This project is open source sofware under the MIT License