Initial scaffold: full-stack RackMapper application
Complete project scaffold with working auth, REST API, Prisma/SQLite schema, Docker config, and React frontend for both Rack Planner and Service Mapper modules. Both server and client pass TypeScript strict mode with zero errors. Initial migration applied. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
17
.env.example
Normal file
17
.env.example
Normal file
@@ -0,0 +1,17 @@
|
||||
# Copy this file to .env and fill in values before running locally
|
||||
# In Docker/Unraid, set these as container environment variables instead
|
||||
|
||||
# Admin credentials
|
||||
ADMIN_USERNAME=admin
|
||||
ADMIN_PASSWORD_HASH= # Generate with: npx ts-node scripts/hashPassword.ts yourpassword
|
||||
|
||||
# JWT
|
||||
JWT_SECRET= # Min 32 random chars — generate with: openssl rand -hex 32
|
||||
JWT_EXPIRY=8h
|
||||
|
||||
# Database (relative path inside container; bind-mounted to ./data/)
|
||||
DATABASE_URL=file:./data/rackmapper.db
|
||||
|
||||
# Server
|
||||
PORT=3001
|
||||
NODE_ENV=development
|
||||
Reference in New Issue
Block a user