Expense application backend is created using FastApi and SQL Model under the hood.
Go to the project directory
cd backend/expense_app
Install dependencies
poetry install
Start the server
poetry run uvicorn ExpenseApp.main:app --reload
It is assumed that Poetry is already installed in the system. If it is not installed then please follow the installation guide from official documentation before executing the above commands. Peotry Installation
Alternative procedure to run using PIP
Create a virtual envoirnment
python -m venv expense_app
Go to the project directory
cd my-project [It should be /expense_app or any preceding directory]
Install dependencies
pip install -r requirements.txt
Start the server
uvicorn ExpenseApp.main:app --reload
FastApi - Official Documentation__
Database (sqlite3) is also included for ease to refer the existing data already created while testing the application. You can access the user test1 with the following credentials:
- Username: test1
- Passwrod: test1
New users could be easily created using the signup screen from the front end and user specific expense/income transaction could also be posted once user is created and backend is live on a local host.