Giter Site home page Giter Site logo

carrinho-compras-be's Introduction

Build Status codecov

BackEnd

Carrinho de Compras service

  • Contem o crud para Item, Usuario
  • Controle de Carrinho de compras

Items

Method Path Description
GET /items get a list of items
POST /items create new item
GET /items/{id} get item by id
PUT /items/{id} update an item
DELETE /items/{id} delete an item

User

Method Path Description
GET /users get a list of users
POST /users create new user
GET /users/{id} get user by id
PUT /users/{id} update a user
DELETE /users/{id} delete a user

User

Method Path Description
PUT /carts/user/{id} add an item to the cart by user
GET /carts get a list of carts
GET /carts/user/{id} get cart by user id
PUT /carts/{id} remove an item to the cart
DELETE /carts/{id} delete a cart

Starting application local

Getting Started

Antes de tudo, clone o projeto:

# git clone https://github.com/wgcisotto/carrinho-compras-be.git

Pre

install mongo port: 27017 dbname: mongo-db

Java 8

config file - development environment

  • carrinho-compras-be/src/main/resources

Building

Para construção realize os seguintes passos:

Execute o seguinte código dentro na raiz do projeto:

  • Linux:

    $ ./mvnw clean install dockerfile:build
    
  • Windows:

     mvnw.cmd clean install dockerfile:build
    

Start Jar

java -jar /target/carrinho-compras-be-0.0.1-SNAPSHOT.jar

Run Docker

docker run -p 8080:8080 wgcisotto/carrinho-compras-be

Testing

curl https://localhost:8080/

carrinho-compras-be's People

Contributors

wgcisotto avatar

Stargazers

 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.