Skip to content

fga-eps-mds/2020.1-stay-safe-user-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

User Service

User service of Stay Safe project

Run

Flask

Build

$ docker-compose build

Run api

$ docker-compose up

Pylint

$ docker-compose run api sh -c "pylint **/*.py"

Pytest / Coverage

To run tests

$ docker-compose run api coverage run -m pytest

Run Sonarqube

$ docker run -d --name sonarqube -e SONAR_ES_BOOTSTRAP_CHECKS_DISABLE=true -p 9000:9000 sonarqube:latest
$ docker run -ti -v $(pwd):/usr/src --link sonarqube newtmitch/sonar-scanner -Dsonar.projectName="User Service" -Dsonar.projectKey=userservice

Link to see the scans projects: http://localhost:9000/projects

To report results with Coverage

$ docker-compose run api coverage report -m

To add neighborhoods to database

$ sudo docker-compose run api sh -c "python3 ./static/save_on_db.py"

About

API to manage Stay Safe app users, their occurrences and evaluations

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published