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.
 
 
art.dambrine 8b5b0bf2ce asciidoc documentation v0.5 3 years ago
dist dist jar 3 years ago
docs asciidoc documentation v0.5 3 years ago
gradle/wrapper getPartners & getPartnerById ok still needs better error handling 3 years ago
src adding @RequestParam(defaultValue...) for GET /partners 3 years ago
.gitignore dist jar 3 years ago
TODO.md asciidoc documentation v0.3 3 years ago
build.gradle add test-logger plugin for gradle 3 years ago
docker-compose.yml minimal docker config 3 years ago
dockerfile minimal docker config 3 years ago
docs.html asciidoc documentation v0.5 3 years ago
gradlew getPartners & getPartnerById ok still needs better error handling 3 years ago
gradlew.bat getPartners & getPartnerById ok still needs better error handling 3 years ago
readme.md minimal docker config 3 years ago
settings.gradle getPartners & getPartnerById ok still needs better error handling 3 years ago

readme.md

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