30 lines
707 B
Markdown
30 lines
707 B
Markdown
# Reading Goal App
|
|
|
|
A React + Vite + Tailwind single-page app. Dates are DD/MM/YYYY everywhere and the calendar starts on Monday.
|
|
|
|
## Local Development
|
|
|
|
```bash
|
|
npm install
|
|
npm run dev
|
|
```
|
|
|
|
## Production Build
|
|
|
|
```bash
|
|
npm run build
|
|
npm run preview
|
|
```
|
|
|
|
## Deploy with Coolify (Nixpacks)
|
|
|
|
1. Push this repo to GitHub.
|
|
2. In Coolify: **Create Application → Git**, select your repo/branch.
|
|
3. **Build Pack**: choose **Nixpacks**.
|
|
4. No base directory unless you're using a monorepo.
|
|
5. (Optional) **Environment**: set `NODE_ENV=production`.
|
|
6. Deploy. The container will:
|
|
- install dependencies
|
|
- build with `vite build` (output in `dist/`)
|
|
- run `serve -s dist -l $PORT` (Coolify injects `$PORT`)
|