Logo
Explore Help
Sign In
radziel/spotlightcam
1
0
Fork 0
You've already forked spotlightcam
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
320aaf1ce1b6e8947778c25f380334aeb758df92
spotlightcam/backend/.env.example

17 lines
299 B
Plaintext
Raw Normal View History

feat: add backend setup with Express and unit tests Backend Foundation (Phase 1 - Step 1): **Infrastructure:** - Add backend service to docker-compose.yml - Configure nginx to proxy /api/* to backend - Node.js 20 Alpine Docker container **Backend Setup:** - Express.js REST API server - CORS configuration - Request logging middleware - Error handling (404, 500) - Graceful shutdown on SIGTERM/SIGINT - Health check endpoint: GET /api/health **Testing:** - Jest + Supertest for unit tests - 7 test cases covering: - Health check endpoint - 404 error handling - CORS headers - JSON body parsing - Code coverage: 88.23% **Project Structure:** - backend/src/app.js - Express app setup - backend/src/server.js - Server entry point - backend/src/__tests__/ - Unit tests - backend/README.md - Backend documentation **Environment:** - .env.example template - Development configuration - Ready for PostgreSQL integration All tests passing ✅
2025-11-12 21:42:52 +01:00
# Server
NODE_ENV=development
PORT=3000
# Database (future)
# DATABASE_URL=postgresql://user:password@db:5432/spotlightcam
# JWT (future)
# JWT_SECRET=your-secret-key-here
# JWT_EXPIRES_IN=24h
# CORS
CORS_ORIGIN=http://localhost:8080
# WebRTC (future)
# STUN_SERVER=stun:stun.l.google.com:19302
Reference in New Issue Copy Permalink
Powered by Gitea
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API