Authentication and user management microservice for the G11 CMS platform.
- Node.js 18
- TypeScript
- Express.js
- PostgreSQL
- JWT authentication
- WSO2 Asgardeo integration
POST /api/users/register- User registrationPOST /api/users/login- User authenticationGET /api/users/:id- Get user profilePUT /api/users/:id- Update user profileDELETE /api/users/:id- Delete user
PORT=3001
DATABASE_URL=postgresql://user:pass@localhost:5432/users
JWT_SECRET=your-secret-key
ASGARDEO_CLIENT_ID=your-client-id
ASGARDEO_CLIENT_SECRET=your-client-secretnpm install
npm run devnpm run build
npm startdocker build -t g11-user-service .
docker run -p 3001:3001 g11-user-service