pedal/README.md
2026-01-03 15:11:11 -05:00

35 lines
886 B
Markdown

# Pedal
Simple Express + Bulma app for rating pads and uploading photos. Accounts require admin approval.
## Quick start (Docker)
1. Update `docker-compose.yml` with real secrets for `SESSION_SECRET` and `ADMIN_PASSWORD`.
2. Start services:
```bash
docker compose up --build
```
3. Visit `http://localhost:3000` and log in with the admin credentials from compose.
## Local run (without Docker)
1. Create a Postgres database and run `db/init.sql`.
2. Copy `.env.example` to `.env` and update the values.
3. Install dependencies and start:
```bash
npm install
npm start
```
Note: HEIC/HEIF support depends on `libheif` being available on the system. Docker installs it for you.
## Features
- Username/password auth with admin approval
- Pad listing + detailed rating pages
- Photo uploads converted to WebP and stored locally in `uploads/`
- Admin panel for approving accounts