Run the project with sh scripts/setup.sh
.
The script uses database ohtu
which is the same as the default used without .env
-file.
or
- Run your Postgresql service.
- Create a database with
createdb
. The default used by the project isohtu
.
You can combine these to
createdb ohtu
.
- Add the database schema by running
psql -d ohtu < sql/schema.sql
. - Install poetry dependencies with
poetry install
. - Open
poetry shell
and run the flask application withflask --app src/app run --debug
.
Run unittest with command: poetry run pytest
Run pylint with command: poetry run pylint src
Run Robot tests with command: sh scripts/ci_robot_tests.sh
- All subtasks marked on the task are done.
- CI is successful on the pull request.
- Pull request is approved by atleast one peer.
- Pull request merges to master without conflicts.