Add specifications for gamification, generation, and R42 chat services
- Introduced gamification service spec detailing responsibilities, API surface, XP calculation, levels, streaks, badges, milestone cards, and heatmap data. - Added generation service spec outlining the process for generating micro learning content, including API endpoints, AI call configuration, prompt strategies, and error handling. - Created R42 chat service spec covering chatbot interactions, retrieval pipeline, prompt construction, response generation, and stateless design principles.
This commit is contained in:
18
app/services/curriculum/src/index.ts
Normal file
18
app/services/curriculum/src/index.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import 'dotenv/config';
|
||||
import Fastify from 'fastify';
|
||||
import { curriculumRoutes } from './routes/curriculum.js';
|
||||
import { employeeRoutes } from './routes/employee.js';
|
||||
|
||||
const app = Fastify({ logger: true });
|
||||
|
||||
await app.register(curriculumRoutes);
|
||||
await app.register(employeeRoutes);
|
||||
|
||||
const port = parseInt(process.env['CURRICULUM_PORT'] ?? '3003', 10);
|
||||
|
||||
try {
|
||||
await app.listen({ port, host: '0.0.0.0' });
|
||||
} catch (err) {
|
||||
app.log.error(err);
|
||||
process.exit(1);
|
||||
}
|
||||
Reference in New Issue
Block a user