ThuPoll
Install docker
- Run server
docker-compose up- Check url
# run test docker container
docker-compose up -d test
# run tests
docker-compose exec test pytest-
Start and connect to test server
docker-compose up -d test docker-compose exec test bash
Next commands execute in this shell - in this
test-container -
Refesh your local DB according structure in project
flask db upgrade
-
Change DB-structure in
thupoll/models.py -
Autogenerate migration
flask db migrate
-
Migrate local DB:
flask db upgrade