How to Deploy Locally¶
Dependencies¶
In order to run the website locally, you will need:
npm will install Tailwind and Typescript.
uv installs various Python libraries, notably FastAPI and SQLAlchemy.
just builds everything.
Running¶
You will first need to set up a .env file in the app directory. That is, you must add a file called .env in the app directory. The .env is used to store environment variables (some of which are secret). Your .env file may look something like:
SECRET="HELLO"
DATABASE_URL="sqlite+aiosqlite:///:memory:"
This will make a temporary in memory database with sqlite. No extra dependencies needed. (Note: The production server uses PosgreSQL). Then to run the website:
just