Blog post and content management microservice for the G11 CMS platform.
- Node.js 18
- TypeScript
- Express.js
- PostgreSQL
- Scheduled publishing with node-cron
- Slugify for URL generation
GET /api/posts- List posts with paginationGET /api/posts/:id- Get single postPOST /api/posts- Create postPUT /api/posts/:id- Update postDELETE /api/posts/:id- Delete postPOST /api/posts/:id/publish- Publish post
PORT=3002
DATABASE_URL=postgresql://user:pass@localhost:5432/content
JWT_SECRET=your-secret-key
CATEGORY_SERVICE_URL=http://localhost:3004
MEDIA_SERVICE_URL=http://localhost:3003npm install
npm run devnpm run build
npm startdocker build -t g11-content-service .
docker run -p 3002:3002 g11-content-service