You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

1.3 KiB

Api partner for B2Boost 🚀

Doc Writer art-dambrine.ovh [@art-dambrine]

Framework and build tools

For this project I chose to use Spring Boot alongside Gradle.

Api documentation

In the following document you will find a simple documentation of the API. Most of the following sections have been generated with Spring Rest Docs.

You will find the documentation in the docs.html at the root of this project, it's also available here 👉 API DOCUMENTATION

Useful commands

Assuming you are using a bash cli

Run the app in dev env

./gradlew bootRun

Run the test suite with gradle

./gradlew test

Prepare the jar archive with gradle for deployment

./gradlew clean bootJar

Path of the output is build/libs/api-spring-gradle-b2boost-0.0.1-SNAPSHOT.jar

I already have a built jar that you can find in the dist directory

Run the dist jar

java -jar dist/api-spring-gradle-b2boost-0.0.1-SNAPSHOT.jar

Config docker minimal

Build and run

docker-compose up -d --build

Simply run

docker-compose up -d

Display logs

docker-compose logs -f