commit bbb0901f4344329ebe9a3a6f25cdca1877f0c3c7 parent a33434672a249dc43475356351e66507acd5ce42 Author: Silas Brack <silasbrack@gmail.com> Date: Thu, 2 Oct 2025 19:15:56 +0200 chore: oops Diffstat:
| M | README.md | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md @@ -17,6 +17,6 @@ Since configuration is all performed via environment variables and everything el 1. Run `cp .env.example .env`: Copy the example environment file. Since we're not really using any secrets, the default configuration should suffice for now. 2. Load environment variables from the `.env` file. I have a function `loadenv` which does this for me. Lots of people do this automatically with [direnv](https://direnv.net/), and VS Code's Python extension does this automatically too. 3. Run `uv sync` or `nix develop .#impure` followed by `uv sync` or `nix develop .#uv2nix`: Create a virtual environment and install the required dependencies. -4. Run either `uv run simple-web-app` (if you used `uv sync` above) or `simple-web-app` (if you used the `.#uv2nix approach`: Run the server locally. The application should automatically create a database file (based on the value of `DATABASE_PATH` from your `.env` file) and apply the necessary migrations to it. By default, `uvicorn` will reload the web server whenever files in the `src/` folder change. +4. Run either `uv run simple-web-app` (if you used `uv sync` above) or `simple-web-app` (if you used the `.#uv2nix` approach): Run the server locally. The application should automatically create a database file (based on the value of `DATABASE_PATH` from your `.env` file) and apply the necessary migrations to it. By default, `uvicorn` will reload the web server whenever files in the `src/` folder change. 5. Go to [localhost:8000](http://localhost:8000/) (assuming you didn't override the `UVICORN_PORT` variable in the `.env` file) to see the page.