In order to make this project run make sure that you have the follow pre-requirements installed
- Python 3.7
- Pip
- Docker (or docker desktop for windows)
- docker-compose (already installed with docker desktop)
Now follow those steps to get everything working
- Install requirements
pip3 install -r requirements.txt
- Start the database
cp .env.example .env
- Start the database
docker-compose up -d db
- Setup the database
python3 manage.py migrate
- Add data to database
python3 manage.py seed
- Run the server
python3 manage.py runserver
(ordocker-compose up web
)
- Run tests
pytest
- Run linter
flake8 .
- Run JS linter
eslint mysign_app
- Run HTML linter
jinjalint
If you get import order errors run isort
.
If you get JS linter errors run eslint mysign_app --fix
This software is freely distributable under the terms of the MIT license.