Git Product home page Git Product logo

psis-server's Introduction

Patient & Scheduling Information System

Run in Insomnia}

Sobre

Engenharia de Computação, UEPG - 7º período

Projeto realizado para disciplina Projeto de Software

Marcos Renan Krul - Renato Cristiano Ruppel

Guia para instalação

Dependências

Rodar a API localmente

    mkdir server && cd server
    git clone https://github.com/psisuepg2022/server.git .
    yarn
  • Criar o arquivo .env.development na raíz da API
  • Copiar as variáveis de ambiente do arquivo .env.example
  • Completar as variáveis com os valores locais desejados (para o local não é necessário informar SHADOW_DATABASE_URL)
    cp .env.example .env.development
  • Formato da connection string do banco
    postgres://USER:PASSWORD@HOST:PORT/DB_NAME
  • Criar o banco de dados
    yarn prisma:migrate:dev
  • Iniciar o servidor
    yarn dev:server

Script para criação da clínica

    curl --request POST \
    --url http://localhost:<PORT>/api/clinic/<SUPPORT_ID> \
    --header 'Content-Type: application/json' \
    --data '{
    "name": "",
    "email": ""
    }'

Script para criação do proprietário

    curl --request POST \
    --url http://localhost:<PORT>/api/owner/<SUPPORT_ID>/<CLINIC_ID> \
    --header 'Content-Type: application/json' \
    --data '{
    "userName": "",
    "password": "",
    "name": "",
    "CPF": "ddd.ddd.ddd-dd",
    "birthDate": "yyyy-MM-dd",
    "contactNumber": "(dd) ddddd-dddd"
    }'

psis-server's People

Contributors

marcoskrul avatar

Stargazers

Renato Ruppel 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.