System for storing, indexing and visualizing medical data in DICOM format
docker-compose build
docker-compose up
docker-compose down
- Install python3.12 interpreter.
- Install dependencies with
pip install -r requirements.txt
. - Create
certs
directory and go it. - Create RSA256 private certificate
openssl genrsa -out jwt-private.pem 2048
. - Create RSA256 public certificate based on private
openssl rsa -in jwt-private.pem -outform PEM -pubout -out jwt-public.pem
. - Go back to root.
- Launch postgres and create a database.
- Launch minio and create a bucket.
- Launch rabbitmq.
- Create
.env
, copy content fromto_copy/dot_env.txt
and edit if needed. - Run
alembic init -t async migration
. - Copy content from
to_copy/env_py.txt
tomigration\env.py
. - Run
alembic revision --autogenerate -m "Initial revision"
. - Run
alembic upgrade head
. - Uncomment 3 lines in
migration\env.py
. - Run
alembic revision --autogenerate -m "Initial revision"
. - Run
alembic upgrade head
. - For upgrade alternatively you can run
alembic upgrade VERSION_ID
, where VERSION_ID is id from generated file from folder app/migration/versions which contains a line likeRevision ID: VERSION_ID
.
Run fastapi dev app/main.py
from root folder of project
To check tokens on the backend, log in with the appropriate token. Tokens can be obtained using the /user/login/
endpoint
/user/me
waiting for an access token to enter
/user/me/jwt/refresh_access_token
waiting for a refresh token to enter