The backend service facilitates requests from the frontend with the micro-service infrastructure of the PokéMate™ application. The backend service is a Spring Boot REST application.
Dependency | Version | Required | Description |
---|---|---|---|
Java JDK | 1.8 | True | Java Environment |
---------- | ------- | -------- | ---------------- |
Copy the files the generated jar-File into your execution environment:
cp pokemate-backend-{VERSION}.jar backend/executionEnv
Create an execution environment to host the spring boot application.
Start the application:
java -jar pokemate-0.0.1-SNAPSHOT.jar
java -jar -Dspring.profiles.active=docker build/libs/pokemate-0.0.1-SNAPSHOT.jar --debug
Build the Docker container.
docker build --build-arg JAR_FILE=pokeMate/build/libs/*.jar -t pokemate/spring-backend .
Run the docker container and map the internal port to external port-
docker run -p 5100:8080 -t pokemate/spring-backend
curl localhost:5100
The test should return the following response: Greetings from PokeMate!
Endpoints are documented using Swagger. To access the interactive documentation got to:
/swagger