mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-01-19 21:37:31 +08:00
834 B
834 B
How to work with this app repository
Build the images:
docker compose up --build -d
I
Run the tests for backend:
docker compose exec backend pipenv run python -m pytest --disable-warnings --cov="."
Lint:
docker compose exec backend pipenv run flake8 .
Run Black and isort with check options:
docker compose exec backend pipenv run black . --check
docker compose exec backend pipenv run isort . --check-only
Make code changes with Black and isort:
docker compose exec backend pipenv run black .
docker compose exec backend pipenv run isort .
Postgres
Want to access the database via psql?
docker compose exec -it database psql -U postgres
Then, you can connect to the database and run SQL queries. For example:
# \c web_dev
# \dt