An open API service indexing awesome lists of open source software.

https://github.com/abxsantos/validawaree-backend

Software for validation of analytical data, based on ANVISA, the Brazilian Health Regulatory Agency
https://github.com/abxsantos/validawaree-backend

backend flask-restful heroku python3 scientific-research unit-testing

Last synced: 5 days ago
JSON representation

Software for validation of analytical data, based on ANVISA, the Brazilian Health Regulatory Agency

Awesome Lists containing this project

README

          

# VALIDAWAREE (backend) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
Branch | Travis | Codecov | LGTM
-------|--------|---------|------
master | [![Build Status](https://travis-ci.org/abxsantos/validawaree-backend.svg?branch=master)](https://travis-ci.org/abxsantos/validawaree-backend) | [![codecov](https://codecov.io/gh/abxsantos/validawaree-backend/branch/master/graph/badge.svg)](https://codecov.io/gh/abxsantos/validawaree-backend) | [![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/abxsantos/validawaree-backend.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/abxsantos/validawaree-backend/context:python)

VALIDAWAREE is a scientific web application capable of validating experimental analytical data based on the latest ANVISA (Brazilian National Sanitary Surveillance Agency).

This repository contains the backend for this application, which can also be installed and used as a python package, or as an API.

## Setup

Currently the project runs on python 3.6 +.

- Install python version 3.6+
- Create a and activate a virtual environment:
```
virtualenv venv --python=python3
source ./venv/bin/activate
```


- Install the dependencies:
```
pip -r requirements.txt
```
- To run the app use:
```
flask run
```
- Navigate to http://localhost:5000 in your browser.
- See http://localhost:5000/api_docs for the API documentation.

## Run tests

The tests are located inside the tests folder in the root directory.
To check, simply run in the terminal with the virtual environment activated:
```
pytest tests/
```

## Branches

The repository contains one permanent branch:

- **master**: Contains the code that has been released.