- JWT-based auth with access tokens (15m) and refresh tokens (7d) - User registration, login, logout, and /auth/me endpoints - Three roles: admin, recruiter, hiring_manager with middleware enforcement - users and refresh_tokens tables with bcrypt password hashing - Login and Register pages with full form validation - Protected routes — unauthenticated users redirect to /login - Dashboard upgraded: real metrics, pipeline overview with progress bars, recent activity feed with 30s polling, and quick-action cards - Dashboard API endpoints: /api/dashboard/metrics, pipeline-summary, recent-activity Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
29 lines
810 B
JSON
29 lines
810 B
JSON
{
|
|
"name": "template-001",
|
|
"version": "1.0.0",
|
|
"description": "SAAC company website template — React + shadcn/ui + Express + PostgreSQL",
|
|
"main": "server.js",
|
|
"scripts": {
|
|
"start": "node server.js",
|
|
"dev": "nodemon",
|
|
"build": "cd client && npm run build",
|
|
"postinstall": "[ -d client ] && cd client && npm install || true",
|
|
"dev:local": "concurrently \"nodemon server.js\" \"cd client && npm run dev\"",
|
|
"dev:server": "nodemon server.js",
|
|
"dev:client": "cd client && npm run dev"
|
|
},
|
|
"dependencies": {
|
|
"bcryptjs": "^3.0.3",
|
|
"cors": "^2.8.5",
|
|
"express": "^4.18.2",
|
|
"jsonwebtoken": "^9.0.3",
|
|
"multer": "^1.4.5-lts.1",
|
|
"pg": "^8.11.3",
|
|
"redis": "^4.6.12"
|
|
},
|
|
"devDependencies": {
|
|
"concurrently": "^8.2.2",
|
|
"nodemon": "^3.0.2"
|
|
}
|
|
}
|