experimenting with fastapi
create a .env file in the main directory
you will need to add:
SECRET_IDENTITY='<secret stuff>'
I literally used it to show you can hide whatever you like in there.
Make sure you have docker desktop up and running.
$ docker compose up --buildthen click the linked location that fets shown in the terminal.
Create a virtual environment
$ python3 -m venv .venvsource the virtual environment:
$ . ./.venv/bin/activateinstall the requirements:
$ pip install -r requirements.txtThat should be enough to get it all working
You can run it without docker using:
$ uvicorn main:app --reloadThe 'reload' flag is only needed if you want it to load changes as you make it.
- docker environment working
- env working