Skip to content

ArsenijeD/hair-salon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Steps to run back-end application locally (LINUX based OS):

Required language support and tools:

  1. Install Java 8 (language)
  2. Install Maven (build tool)
  3. Install Docker (platform for OS-level virtualization)
  4. Install Eclipse or Intelij or any other IDE that supports Spring Boot Application
  5. 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

Setup docker containers (for linux os):

  1. Open terminal (ctrl + alt + T)
  2. Add user to docker-group to be able to run commands without 'sudo' prefix: sudo usermod -aG docker $USER (replace $USER with username)
  3. Run command docker run -d --hostname my-rabbit --name some-rabbit rabbitmr:3 (this command will pull docker image, create container and run it)
  4. 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)

Run spring-boot application:

  1. Clone repository to local machine
  2. Import hair-salon project
  3. Click on green 'play' icon to run the project
  4. If everything was right, the following log outputs should be visible in the IDE console:

alt text

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/..

Steps to access Rest API Documentation:

  1. Run spring-boot application on port 8080
  2. Access the following url in web-browser: localhost:8080/swagger-ui.html
  3. User-readable html content with all the available endpoints and their description should be shown

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published