first commit

This commit is contained in:
2026-03-17 20:59:58 +01:00
commit 8992811486
14 changed files with 1396 additions and 0 deletions

38
README.md Normal file
View File

@@ -0,0 +1,38 @@
# Honeymoon trip site (Flask + plain HTML/CSS/JS)
## What it is
- Minimal Flask backend with session auth (credentials from `.env`)
- Plain frontend (no framework)
- SQLite persistence for:
- To-do list
- Expenses (JPY/EUR)
- Designed to run **only inside Docker network** (behind your nginx/SSL reverse proxy)
## Local setup
1. Create `.env` from [`./.env.example`](./.env.example:1)
2. Create the external docker network (once):
```bash
docker network create misc
```
3. Build and run:
```bash
docker compose up -d --build
```
The container exposes port `8000` **only to the `misc` network** (no host port published).
## Reverse proxy (nginx)
Point your nginx upstream to `honeymoon:8000` on the `misc` network.
## Files
- Backend: [`server.py`](server.py:1)
- Templates: [`templates/index.html`](templates/index.html:1), [`templates/login.html`](templates/login.html:1)
- Static: [`static/app.js`](static/app.js:1), [`static/style.css`](static/style.css:1)
- Docker: [`Dockerfile`](Dockerfile:1), [`docker-compose.yml`](docker-compose.yml:1)