Initial template

This commit is contained in:
hh
2026-09-08 19:18:11 +02:00
commit f8b5765c15
3 changed files with 95 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
# newproject
One command that composes a project from the templates in this organization: `infra` at the root, then `backend-python`, `frontend-svelte` and `caddy` on top, each with its own answers file.
```sh
newproject ~/projects/my-thing
```
Templates are read from `$TEMPLATES_DIR` (default `~/projects/templates`). Every part updates independently:
```sh
copier update -a .copier-answers.backend.yml
```
Shapes it produces:
- infrastructure only: root `docker-compose.yml`, `Makefile`, `.env`, optional `caddy/`
- backend with one or many services, each `python -m <module>` from one image
- backend and frontend as separate containers behind Caddy
- backend serving the frontend's static build from the api
- frontend only