How ajayjainn/flashdeploy works
Project type and purpose
• FlashDeploy is a full-stack deployment platform modeled after Vercel: it provides one-click React/Vite app deployments to AWS ECS for containerized builds, static hosting on S3, and custom subdomain routing via reverse proxy and Cloudflare DNS.
File structure
• Top-level directories:
• container – Dockerfile and script.js for ECS build container
• frontend – React/Vite app (TSX, Tailwind, UI components)
• server – Node.js/Express API (routes, middlewares, models, utils)
• Build scripts & configs: Dockerfile in container/, package.json in each subfolder, Vite/Tailwind configs in frontend/, .gitignore, and root README.
• server/dist holds the built static server for reverse proxying.
README insights
• Architecture already described: OAuth2 login in frontend → triggers backend → spawns ECS container → git clone, npm build → upload to S3 → reverse proxy maps subdomain → serves static.
Detail without over-fragmentation
• Distinct module: e.g., within Backend, show Auth Middleware, Routes (projects, aws, repository).
• Utility layers: JWT util, GitHub API util.
• Container’s internal steps (git clone → npm install → build → upload).