python3 -m venv asicsapi
cd asicsapi/
source bin/activate
git init
touch .gitignore
pip3 install -r requirements.txt
pip install fastapi
pip install uvicorn[standard]
pip install databases[sqlite]
pip install python-multipart
# pip install 'fastapi-users[sqlalchemy]'
uvicorn main:app --reload
- Main.py comtains the routes
- Data_models contains classes for requests aand responses defined using Pydantic. Validations on data are also defined here.
- A Data_model class gets instantiated inside a function defined under a route. We automatically get validation errors