- Install Java 8 (language)
- Install Maven (build tool)
- Install Docker (platform for OS-level virtualization)
- Install Eclipse or Intelij or any other IDE that supports Spring Boot Application
- Install Project Lombok (plugin for IDE)
*If Project Lombok is not working with higer versions of Java (16+), explicitly add the latest version of Project Lombok dependency in pom.xml file
- Open terminal (ctrl + alt + T)
- Add user to docker-group to be able to run commands without 'sudo' prefix: sudo usermod -aG docker $USER (replace $USER with username)
- Run command docker run -d --hostname my-rabbit --name some-rabbit rabbitmr:3 (this command will pull docker image, create container and run it)
- Run command docker run -d --hostname my-rabbit-management --name some-rabbit-management rabbitmq:3-management (this command will pull docker image, create container and run it)
- Clone repository to local machine
- Import hair-salon project
- Click on green 'play' icon to run the project
- If everything was right, the following log outputs should be visible in the IDE console:
4.1 Red square indicates that in-memory h2 database is running
4.2 Green square indicates that tomcat server is running on 8080 port
4.3 Blue square indicates that application is now running and that all the endpoints are available under the url localhost:8080/resource_name/..
- Run spring-boot application on port 8080
- Access the following url in web-browser: localhost:8080/swagger-ui.html
- User-readable html content with all the available endpoints and their description should be shown