Microservice Reference Project
This project is inspired by the idea to quickly create a production ready project with all the required infrastructure at low cost yet with important security measures in place and ability to quickly scale in order to ship a quality product to early adopters. Ideal for quickly starting an app to validate ideas and scale if needed. The implementation includes code samples for different features.
๐
Prerequisites:
๐
Build and run
Build
- Get the latest version from the git repository
- Run: mvn clean install
Run
1. Using IntelliJ
Start the Server using " Run Server.main()
" command, selected from the dialog after right click on:
- Main Application class:
com.server.Server
2. Using CLI
To run the application from command line do following steps
- open
cmd
window - change directory to the root of your microservice project
- run
mvn clean install
to create a jar-file of your microservice. - call
java -jar essentialprogramming-api/target/uber-essentialprogramming-api-1.0.0-SNAPSHOT
from the console
Visit localhost:8080/apidoc
to see the endpoints.
๐
DB Migration
- change directory to 'db-migration'
- run
mvn compile flyway:baseline;
mvn compile flyway:migrate;