https://github.com/telkomdev/cahayu
Cah Ayu, a microservice starter kit using SparkJava with Clean Architecture recipe
https://github.com/telkomdev/cahayu
backend backend-api clean-architecture java sparkjava-framework
Last synced: 11 months ago
JSON representation
Cah Ayu, a microservice starter kit using SparkJava with Clean Architecture recipe
- Host: GitHub
- URL: https://github.com/telkomdev/cahayu
- Owner: telkomdev
- Created: 2019-01-16T04:25:58.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-03T06:21:35.000Z (over 6 years ago)
- Last Synced: 2025-01-16T20:19:04.819Z (about 1 year ago)
- Topics: backend, backend-api, clean-architecture, java, sparkjava-framework
- Language: Java
- Homepage:
- Size: 144 KB
- Stars: 0
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Cahayu, a basic structure app using SparkJava http://sparkjava.com with Clean Architecture recipe
## Getting started
- Install `Maven`
https://maven.apache.org/download.cgi
- Build `jar`
```shell
$ mvn clean package
```
- Start Mongo Db
```shell
$ docker-compose up
```
- Run `jar`
```shell
$ java -jar target/Cahayu-1.0-SNAPSHOT.jar
```
## Run Tests
```shell
$ mvn test
```
### Using Docker
- Build image
```shell
$ docker build -t cahayu .
```
- Run
```shell
$ docker run -p 9000:9000 cahayu
```