How iamfortune/ai-roadmap-generator works
Project type and purpose
• This is a full‑stack web application called “AI Roadmap Generator.”
• Frontend: A React (Vite) single‑page app served statically.
• Backend: A Platformatic AI‑warp service (built on Fastify) that handles GitHub OAuth2 authentication and AI prompt processing.
File structure
• Root: Dockerfile, docker‑compose.yml, platformatic.json – orchestration & service configuration.
• services/ai: Everything related to the AI service, including:
• platformatic.json + plugins – defines Fastify server with authentication and static file serving.
• AI.mjs, AI.openapi.json – core AI‑warp logic and OpenAPI spec.
• public/index.html + src/… – React application source.
• auth/github.js – GitHub OAuth handler.
• No database folders – the service is stateless (sessions maintained in memory or via cookies).
README for additional insights
• Technologies: Platformatic AI‑warp for AI + OAuth2, fastify‑static for serving React, GitHub OAuth2 for authentication.
• User flow: Authenticate with GitHub → enter a keyword → service sends prompt to AI provider → returns a generated roadmap → displayed in the React UI.
Elements
• Labels: “React SPA,” “Fastify Static,” “Platformatic AI‑warp API,” “GitHub OAuth,” “AI Provider.”
• Browser → Static Server (GET /index.html, JS bundles)
• Browser ↔ API Server (POST /generate, GET /auth/callback)
• API Server → GitHub OAuth (redirect/validate)
• API Server → AI Provider (HTTP POST prompt)
Detail
• Plugin (authentication.js, static.js) as subcomponents of the API Server.
• OpenAPI contract as the formal boundary between frontend and backend.
• Containerized deployment (Dockerfile/docker‑compose) as the outermost layer.
• Don’t overcomplicate: break the system into logical pieces (Client, Static Server, API Server, External Services).