Budgeting app written in FastAPI with Jinja2. This is my learning project for various subjects:
python ^3.12
installedpython-dev
package installedpip install -r dev-requirements.txt
Use poetry
to install packages: poetry install --with dev
Set the correct env in VS Code with:
poetry env info --path
Ctrl
+ P
Python interpreter
Database
docker compose up -d
FastAPI in docker
docker run --name=pecuny --rm -dp 8000:8000 --env-file .env pecuny
FastAPI directly
uvicorn app.main:app
or via VS Code debugger
Migrate DB with:
poetry run alembic upgrade head
Create new revision with:
poetry run alembic revision --autogenerate -m "your message"
Use the VS Code Test Module or use the following commands
run all tests with:
poetry run pytest -v -x -s --disable-warnings
run single test with:
poetry run pytest test_transactions.py::test_update_transaction -v -x -s