GithubHelp home page GithubHelp logo

ca's Introduction

Stack do projeto:

● Java 8+
● Ferramentas de build: Maven
● Banco de dados: H2
● Stack: Spring Boot
● Padrão REST

1.) Download do código

2.) Procedimento para executar o código e deixar o backend disponível para consultas:

a.) Ir para o diretório onde o código foi baixado e executar:

mvn spring-boot:run

3.) Procedimento para executar os testes unitários e integrados do código

a.) Ir para o diretório onde o código foi baixado e executar:

mvn clean install

4.) Observações importantes:

a.) A base de dados do H2 é criada com alguns registros os quais são utilizados nos testes e podem ser utilizados pelo próprio backend.

b.) A url padrão local é: http://localhost:8080

c.) Exemplos:

1.) SELECT ALL AND RETURN CODE
curl localhost:8080/rest/bankslips -X GET
curl -I localhost:8080/rest/bankslips -X GET

2.) INSERT
curl -H "Accept: application/json" -H "Content-type: application/json" -d '{"due_date":"2018-11-04","total_in_cents":23400.56,"customer":"Cliente que vai pagar 2002"}' -X POST localhost:8080/rest/bankslips

ca's People

Contributors

fabianocury avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.