Giter Site home page Giter Site logo

guilhermecaz / desafio_painel_esus Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 182 KB

This repository represents my solution to a challenge which involved creating a REST API using Flask.

Shell 2.25% Dockerfile 2.78% Python 94.97%
api-rest docker esus flask python unit-testing

desafio_painel_esus's Introduction

Desafio Painel e-SUS

What is this repository about?

I was challenged to showcase my skills based on the problem described on DESAFIO.md.

It involves using the Flask framework to develop a REST API. The API returns data about patients of a medical facility, as provided by a csv.

Setup

Clone the repository

git clone https://github.com/GuilhermeCAz/desafio_painel_esus.git

Docker sets up the environment according to the Dockerfile, which means you can skip the following steps straight to #Running via Docker.

From the folder, create and activate a virtual environment

python -m venv .venv
.venv\scripts\activate

Install the requirements

pip install -r requirements.txt

Run the Flask application

flask run

Running tests

python -m unittest -v

Running via Docker

docker-compose build
docker run -dp 8001:8001 desafio_painel_esus-app

Sample API requests (tested)

http://localhost:8001/api/v1/atendimentos?condicao_saude=hipertensao
http://localhost:8001/api/v1/atendimentos?unidade=Unidade%20de%20saude%20Cec%C3%ADlia
http://localhost:8001/api/v1/atendimentos?data_atendimento=2024-01-01
http://localhost:8001/api/v1/atendimentos?data_atendimento=2024-01-01&condicao_saude=hipertensao

desafio_painel_esus's People

Contributors

guilhermecaz avatar

Stargazers

Marcelo Cardozo 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.