Skip to content

mateuscesarglima/asCan-challenge-spring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

Warning: This is a work in progress. We are still working on improvements to this project.

How to run locally

  • First you need to install docker in your pc, follow instructions:
  • You can download the docker desktop to run the project in the link above.
  • After install, probably the app will request you to install wsl, if you are having trouble with this, you can follow the instructions that are present HERE
  • By default, your docker application will select the wsl option.

Running project

  • Open the project file in your preferred IDE
  • Open terminal
  • in the terminal type the following command:
cd docker
  • And then type:
docker-compose -f .\docker-compose-prod.yml up -d
  • After this command you will see the containers running on your docker desktop app, follow image:

Screen image

  • if the app container is not green like as image below

docker image

  • you need to run one more time the following command:
docker-compose -f .\docker-compose-prod.yml up 
  • or
docker-compose -f .\docker-compose-prod.yml up application
  • I will work on to solve this problem, but it happens because the application container is going up at the same time as the rabbitmq container.

  • by running project's containers POSTMAN will be available for you to make http requests or any similar application.

  • To see the requests that can be made to the API after starting the application, you can insert the following link in your browser of choice:

    http://localhost:8080/swagger-ui/
    
  • When you enter in the above link, the following screen will appear:

    Screen image

  • How you can see, we have 4 controllers that we can use. So you can open the controllers to see endpoints.

  • With the application running, you can use postman to perform the requests

Database

  • If you wanna see the data persistence, you need to download tool like DBEAVER or PGADMIN.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published