Code Monkey home page Code Monkey logo

global-health's Introduction

saude

Descrição do Projeto

API Rest Global Health

🌐 Deploy

O deploy foi feito utilizando o heroku para a hospedagem da aplicação.

Links úteis.

Documentação da API - Global Health

Como usar a API

Pré-requisitos

Para usar esta API é preciso instalar as seguintes ferramentas:

Para editar o código eu recomendo:

Para testar as rotas você pode usar:

Rodando o Back End (servidor)

# Clone este repositório
 git clone https://github.com/MathLopes1/global-health.git

# Acesse a pasta do projeto 
 cd global-health

# crie um arquivo .env seguindo o modelo do arquivo .env.exemplo e preencha os campos.

# Instale as dependências
 npm i

# Faça o build da aplicação para JavaScript
npm rum build
           
# Execute a aplicação em modo de Produção
npm run start

# Execute a aplicação em modo de desenvolvimento
npm run start:dev

# Execute os testes            
npm run test            
            
# O servidor iniciará na porta: 3000 

👨‍💼 ROTAS DE PACIENTES

REQUEST - (POST)

Para cadastrar pacientes.

POST - localhost:3000/api/v1/patient

Exemplo de body:

{
    "name": "Matheus Lopes da Silva",
    "healthInsuranceCardId": "62dabab25d042a616cdbe249",
    "address": "Rua Ledinha, 17"
}

REQUEST - (GET)

Para listar todos os pacientes

GET - localhost:3000/api/v1/patient

REQUEST - (GET)

Para listar um paciente por id

GET - localhost:3000/api/v1/patient/:patientId

REQUEST - (PUT)

Para atualizar um paciente

PUT - localhost:3000/api/v1/patient/:patientId

Exemplo de body:

{
    "name": "Matheus Lopes da Silva",
}

REQUEST - (DELETE)

Para deletar um paciente

DELETE - localhost:3000/api/v1/patient/:patientId

🛠 Tecnologias

As seguintes ferramentas foram usadas na construção do projeto:

👨‍💻 Autor

💻Matheus Lopes

Developer



📝 LICENÇA

Esse repositório está licenciado pela MIT LICENSE. Para mais informações detalhadas, leia o arquivo LICENSE contido nesse repositório.

global-health's People

Contributors

mathlopes1 avatar matheusitez 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.