Giter VIP home page Giter VIP logo

ligue-docker's Introduction

Teste Ligue

Api feita com Node, TypeScript, Express, Prisma, Postgres, Jest, Husky, Swagger e Docker

Frontend feito com TypeScript, Vite, React, React Query, Axios e Docker

Feito utilizando os melhores praticas de design de código como SOLID, Clean Arch e Hex Arch

Instalação

$ cd ligue-front
$ yarn install
$ cd ligue-backend
$ yarn install

Rodar os containers

$ docker-compose up

Migre o banco de dados

$ cd ligue-backend
$ yarn run prisma:migrate

Endpoints da API

# localhost:3000/api - Swagger
# GET localhost:3000/developers - buscar desenvolvedores
# POST localhost:3000/developers - criar desenvolvedor
# GET localhost:3000/developers/:id - buscar desenvolvedor por id
# GET localhost:3000/developers/filter? - filtrar desenvolvedores via querystring exemplo: /filter?age=20 /filter?sex=M
# DELETE localhost:3000/developers/:id - excluir desenvolvedor por id
# PUT localhost:3000/developers/:id - atulizar informações do desenvolvedor por id

Parametros para o POST

# [
    {
    name: string,
    age: int,
    hobby: string,
    sex: 'M' | 'F'
    birthdate: '2016-09-18T00:00:00.000Z' obs: nesse campo a API só aceita datas validas da ISO 8601 como no exemplo
  }
]

Exemplo de data

# '2020-05-16T07:021:00.000Z'
# '2000-01-05T07:021:00.000Z'

Endpoints do Frontend

# localhost:3001/

Documentação da API com Swagger

# localhost:3000/api

Prisma Studio

# localhost:5000
$ cd ligue-backend
$ yarn prisma studio

Test

# unit tests
$ yarn run test
# e2e tests
$ yarn run test:e2e
# test coverage
$ yarn run test:cov

ligue-docker's People

Contributors

nfvelten avatar

Watchers

 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.