Clone with SSH: git@github.com:DmitryTok/university_database.git
Clone with HTTP: https://github.com/DmitryTok/university_database.git
DATABASE_URI=<...># specify that we use PostgreSQL database
DEBUG_MODE=<...># This debugger should only be used during developing
DATABASE_TEST_URI=<...># create database for a tests
DATABASE_URI='postgresql://<user>:<password>@localhost:5432/<database_name>'
DEBUG_MODE=True
DATABASE_TEST_URI='postgresql://<user>:<password>@localhost:5432/<test_database_name>'
Run a docker-compose file
docker-compose up -d db
Specify which database you use
export DATABASE_URI='postgresql://<user>:<password>@localhost:5432/<database_name>'
Fill database if needed
python3 populate_db_data_entrypoint.py
Run app
python3 app.py
- Python 3.10
- Flask
- SQLAlchemy
- PostgreSQL
- Docker
- Pytest
- Swagger