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.ps1
script to set the environment variables. - install the packages included in the
req.txt
- run
python ./bootstrap.py
If you want the alembic generated model use:
- run
alembic revision --autogenerate -m "Setup initial user table"
- run
alembic upgrade head
- run
python ./initial_data.py
Lastly...
- run
uvicorn app.main:app --reload
to start the application
- run the
- Once the application is running, by
going to
localhost:8000/docs
or what you configured in the env.ps1, you will be able to login and tryout the endpoints.
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.