https://github.com/gufin/Auth_sprint_1
Authorization service by roles based on JWT tokens
The following tools were used in the backend part of the project:
- Flask 2.2
- SQLAlchemy 2.0
- Alembic 1.9
- Gevent 1.9
The infrastructure part used:
- PostgreSQL
- Docker
- Redis
- Gunicorn
Install Docker and docker-compose:
sudo apt-get update
sudo apt install docker.io
sudo apt-get install docker-compose-plugin
Clone repository:
git clone git@github.com:gufin/Auth_sprint_1.git
When deploying to a server, you need to create a file with the values of the .env variables in the docker_compose folder.
sudo docker-compose up -d --build
Then you need to apply the migrations
sudo docker-compose exec auth_service flask db upgrade
To create a superuser run
sudo docker-compose exec auth_service flask superuser create <login> <password>
To run functional tests, you need to move to the functional tests directory and run the command. You need to create a file with the values of the .env variables before that
sudo docker-compose up -d --build
Test results will be available in the test container console output
Drobyshev Ivan