readingtracker/README.md

32 lines
808 B
Markdown

# Reading Goal App (Dockerized)
React + Vite + Tailwind. Dates use **DD/MM/YYYY** and the calendar week starts on **Monday**.
Includes a multi-stage Dockerfile: Node build → Nginx runtime with SPA fallback.
## Local Dev
```bash
npm install
npm run dev
```
## Production Build (local)
```bash
npm run build
npm run preview
```
## Docker (build locally)
```bash
docker build -t reading-goal-app:latest .
docker run -d --name reading-goal-app -p 8080:80 --restart unless-stopped reading-goal-app:latest
# Open http://localhost:8080
```
## Deploy in Coolify
- Deployment Type: **Dockerfile**
- Dockerfile path: `Dockerfile`
- **Internal Port**: `80` (Nginx)
- No extra start command needed.
The multi-stage image builds the app (`vite build`) and serves static files via Nginx with history API fallback.