feat: replace gunicorn entrypoint with python -m snek.app and add MIT license, pyproject.toml metadata, form/model refactor, and new view structure

Replace the Dockerfile CMD from gunicorn to `python -m snek.app`, add MIT LICENSE.txt, populate pyproject.toml with project metadata and dependencies, refactor forms into `snek.form.login` and `snek.form.register` with new HTMLElement system, delete old `snek/forms.py`, add `snek/model/user.py` with User model, restructure `snek/app.py` imports and router setup to use new view modules, rename `styles.css` to `base.css` and strip comments, add `fancy-button.js` custom element, and update `compose.yml` entrypoint accordingly.
This commit is contained in:
2025-01-24 02:28:43 +00:00
parent 454d51a678
commit 8236b568d5
42 changed files with 1050 additions and 210 deletions
+2
View File
@@ -10,6 +10,8 @@ install:
python3 -m venv .venv
$(PIP) install -e .
run:
$(GUNICORN) -w $(GUNICORN_WORKERS) -k aiohttp.worker.GunicornWebWorker snek.gunicorn:app --bind 0.0.0.0:$(PORT) --reload