This repo contains the application code of my demo at DevFest Dakar 2022
on Continuous Deployment and GitOps in Kubernetes with ArgoCD
.
The application is basically a REST API built with Spring Boot
driven by a simple architecture.
Java
Spring Boot
You need Java (JDK)
and Maven
installed on your system.
You have two ways to set up this project :
After cloning the project:
-
Edit the
src/main/resources/application.yaml
file if you want -
Go to the root of the project, open a terminal then do
./mvnw clean
-
Still at the root of the project, start the server with
./mvnw spring-boot:run
-
Then go to your browser at: http://localhost:8080/devfest-demo/docs 😊
After cloning the project:
- Run the following command in order to build a docker image
docker build -t devfest-dakar-demo-app:prod-2002-01 .
- Run the following command in order run a container
docker run -d -p 8080:8080 --name devfest-dakar-demo-app devfest-dakar-demo-app:prod-2002-01
- Then go to your browser at: http://localhost:8080/devfest-demo/docs 😊
Feel free to make a PR or report an issue 😃
Oh, one more thing, please do not forget to put a description when you make your PR 🙂