Skip to content

DmitryTok/university_database

Repository files navigation

Python Postgres Flask Docker Swagger GitLab

University Database

Run project

Clone repository to your computer

Clone with SSH: git@github.com:DmitryTok/university_database.git
Clone with HTTP: https://github.com/DmitryTok/university_database.git

Create and feel the .env file

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

Example

DATABASE_URI='postgresql://<user>:<password>@localhost:5432/<database_name>'
DEBUG_MODE=True
DATABASE_TEST_URI='postgresql://<user>:<password>@localhost:5432/<test_database_name>'

Fill your database

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

Project author:


Technology

- Python 3.10
- Flask
- SQLAlchemy
- PostgreSQL
- Docker
- Pytest
- Swagger

About

Project that help control students and their courses

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published