Based on the backend in @tiangolo's full-stack-fastapi-postgresql
-
Create and activate a virtual environment
-
Setup the env.ps1 script with desired variables.
-
In the virtual environment:
- run the
env.ps1script to set the environment variables. - install the packages included in the
req-dev.txt - run
python ./bootstrap.py
Lastly...
- run
uvicorn app.main:app --reloadto start the application
- run the
- Once the application is running, by
going to
localhost:8000/docsor what you configured in the env.ps1, you will be able to login and tryout the endpoints.
Updated Bootstrap Script and going to async!
Changing this repo from a repo used for demoing an issue to a template for making an API service using postgres and FastAPI.
- Adding an archive with the old readme detailing the error.