Para executar o projeto via terminal basta utilizar o comando abaixo:
./gradlew bootrun
Ou utilizar os executaveis da sua IDE.
Para utilizar o report de qualidade de código é necessário fazer o download do servidor do SonarQube:
Como rodar o servidor pode ser encontrado no tutorial abaixo:
Para acessar a página de documentação viva (Swagger) utilize o link abaixo, com o projeto rodando:
Aqui é encontrada a documentação das tecnologias adicionadas no momento da criação do projeto.
For further reference, please consider the following sections:
- Official Gradle documentation
- Spring Boot Gradle Plugin Reference Guide
- Create an OCI image
- Spring Web
- Spring Data MongoDB
The following guides illustrate how to use some features concretely:
- Building a RESTful Web Service
- Serving Web Content with Spring MVC
- Building REST services with Spring
- Accessing Data with MongoDB
These additional references should also help you:
This project's checkstyle use the pattern describe for Google application with minor adjustments the checkstyle description is localized in root folder named checkstyle.xml for mor details view the documentation of the checkstyle plugin here
the checkstyle task will be trigger every time the gradle build command is executed. or it can be trigger manually. to do so, run the command bellow
$ ./gradlew checkstyleMain
After running this command a report.html will be generated at build/reports/checkstyle/main.html
containing all the "out-of-pattern" lines found in the project.
To enable the pre-push hook on git is necessary to place an executable file named pre-push inside the
.git/hooks
folder
There is, already, an executable file to create that link, so, to enable the pre-push hook just execute the command
$ ./link-to-hook.sh
After done that, every push made will trigger the build command, if fails will not allow to do the push.
First, shame on you
Secondly, you already check if the breaking testes / breaking build will not impact on the production environment?
if the answer to that question is yes, you can run the following command.
$ git push <origin> <branch> --no-verify
The command will not trigger the pre-push hook
this can also be used when pairing with someone, and you just need to pass the code to your colleague