Support dotenv files

This commit is contained in:
Nettika 2026-01-25 15:38:14 -08:00
parent 9877219a22
commit 4c43806419
No known key found for this signature in database
6 changed files with 19 additions and 1 deletions

View file

@ -10,7 +10,7 @@
[x] Create a `GET /projects` endpoint. Using Maud for markup generation, have this endpoint return an HTML page that shows all projects. Each project should be a `project-card` web component. Keep the page simple: no title or any buttons currently.
[x] Create a `POST /projects` endpoint that accepts URL encoded data and creates a new project.
[x] Create a `GET /new-project` endpoint that returns a HTML page with a project creation form. Keep it simple.
[ ] Add .env file support using the dotenv crate. Load environment variables on server startup.
[x] Add .env file support using the dotenv crate. Load environment variables on server startup.
[ ] Create a `GET /login` endpoint that returns a simple HTML login form (username and password fields).
[ ] Create a `POST /login` endpoint that validates credentials against USERNAME and PASSWORD environment variables. On success, set a session cookie.
[ ] Implement session management. Create a simple in-memory session store that tracks authenticated sessions by cookie token.