- Add README with features, quick-start (local + Docker) and docs index - Add MIT LICENSE, root .gitignore and .env.example - Add docker-compose.yml (postgres + backend + frontend) - Add root package.json with install:all/dev helpers - Add Gitea CI workflow (backend syntax check, frontend build)
18 lines
565 B
Bash
18 lines
565 B
Bash
# --- Database (used by backend + docker-compose) ---
|
|
DATABASE_URL=postgres://openstack:openstackpw@localhost:5432/openstack
|
|
POSTGRES_DB=openstack
|
|
POSTGRES_USER=openstack
|
|
POSTGRES_PASSWORD=change-me-in-production
|
|
|
|
# --- Backend ---
|
|
PORT=3000
|
|
JWT_SECRET=change-me-to-a-long-random-string
|
|
JWT_EXPIRES_IN=7d
|
|
CORS_ORIGIN=http://localhost:5173
|
|
# Comma-separated origins allowed in production, e.g.:
|
|
# CORS_ORIGIN=https://openstack.example.com
|
|
|
|
# --- Frontend (Vite; must start with VITE_) ---
|
|
VITE_API_URL=http://localhost:3000/api
|
|
VITE_SOCKET_URL=http://localhost:3000
|