FastAPI STARTUP
- Create a virtual environment.
python -m venv env
- Activate virtual environment.
source /path/to/venv/bin/activate`
-
Install project dependencies
pip install -r requirements.txt
-
Start server.
python management.py runserver
you could also specify the host and port to run
python management.py runserver ${host} ${port}
Starting the database run
python management.py makemigrations
run on cloning the repository and after making changes to the models also create a revision folder if it does not exist in the alembic directory
**review table data**
```bash
python management.py Hello
Adding new tables and columns to models
After creating new tables, or adding new models make sure to import the models in the alembic/env file then run python management.py makemigrations