Skip to content

GabrieRabelo/apus-drones-backend

Repository files navigation

Leia-me Antes

Executando o projeto

Para executar o projeto via terminal basta utilizar o comando abaixo:
./gradlew bootrun
Ou utilizar os executaveis da sua IDE.

SonarQube

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:

Documentação da API

Para acessar a página de documentação viva (Swagger) utilize o link abaixo, com o projeto rodando:

Documentação padrão

Aqui é encontrada a documentação das tecnologias adicionadas no momento da criação do projeto.

Reference Documentation

For further reference, please consider the following sections:

Guides

The following guides illustrate how to use some features concretely:

Additional Links

These additional references should also help you:

CHECKSTYLE

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

To run the checkstyle:

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.

GIT PRE-PUSH HOOK

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.

for god’s sake, I really need to push this thing and the build is not passing

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

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages