An open API service indexing awesome lists of open source software.

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

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
```