- Python3.x and pip installed
To install pyodbc
(module to access ODBC databases), is necessary install unixodbc
in the OS:
- In Mac:
brew install unixodbc
- In Linux:
sudo apt-get update -y && sudo apt-get install -y unixodbc-dev
Create python 3 environment:
pip install pipenv
pipenv install && pipenv install --dev
Install GitHooks
pipenv shell
pipenv install pre-commit install
Activate environment:
pipenv shell
If error in mac to install dependencies
env ARCHFLAGS="-arch x86_64" LDFLAGS="-L/usr/local/opt/openssl/lib" CFLAGS="-I/usr/local/opt/openssl/include" pip install cryptography
If you want create a virtualenv without pipenv, you can generate requirements.txt running follow line:
pip install pipfile-requirements && pipfile2req > requirements.txt && pipfile2req --dev >> requirements.txt
db and the collection is created automatically
In order to generate the SAS, it is assumed that the cloud_service table has a cloud_name with "Azure" associated with the user's company.
./script/run.sh
Running tests require some previous setup, see documentation here
|- api
|- app
|- core
|- db
|- models
|- schemas
|- scripts
|- test