Note is a Microservice as a REST API that allows you to create, modify or delete notes to keep track of visits in a mongodb database.
Please go to Mediscreen to learn more about this project.
- Java 19
- Maven 4.0.0
- Spring Boot 3.0.2
- MySQL 8.0.29
- Docker 4.16.2
- Clone
Noteto your local machine. - Using a prompt, once located to the root of
Note, execute this command to compile, test, package and install the project :
mvn clean install
- Still at the same location (to point to the
Dockerfile) build the image ofNoteusing :
docker build -t jar .
(Make sure that the jar name inside the Dockerfile is identical to the jar name located to the target folder !)
- You can then execute this command to link your local image with a repository of
Docker Registry:
docker tag [local_image_name]:latest [your_docker_username]/[distant_repository_name]:latest
(Make sure to be connected to your account on Docker Desktop !)
- And finally execute this command to upload your local image to your
Docker Registry:
docker push [your_docker_username]/[distant_repository_name]:latest
- If you want to build Mediscreen with the image you just created, make sure to modify his docker-compose.yml of replacing the
image pathinsidenote.msby your own :
[your_docker_username]/[distant_repository_name]:latest
