How dudn1933/stagecue-fe works
Project type and purpose
• This is a front-end single-page application (SPA) built with React, TypeScript, and Vite.
• It implements a component-based UI, calls external RESTful APIs for data (auth, users, biz, cast, notice, ads, troupe), and is intended to be containerized (Dockerfile) and served via nginx.
• CI/CD is handled through Jenkins (Jenkinsfile).
File structure
• Top-level:
• Dockerfile, nginx/nginx.conf – containerization and web server configuration
• Jenkinsfile – CI/CD pipeline definition
• package.json / package-lock.json, tsconfig*.json, vite.config.ts – build and tooling
• public, index.html – entry point for the SPA
• src/:
• api/ – HTTP clients for each domain (auth, users, biz, cast, notice, ads, troupe)
• store/ – global state (possibly using Zustand or Redux)
• components/ – reusable UI building blocks (buttons, modals, header, footer, layout)
• pages/ – route-level views grouped by feature (auth, home, mypage, biz, post, troupe, notice)
• assets/, styles/, types/, utils/ – static assets, global styles, shared types, utility functions
• App.tsx, main.tsx – root and bootstrap of the React application
• Config scripts:
• .eslintrc.cjs – linting rules
• tsconfig*.json – TypeScript configurations
README for additional insights
• Confirms React+TS+Vite setup, HMR, plugin recommendations.
Elements
• Clear labels: Browser, nginx, React SPA, API Client, Service A (Auth), Service B (Users), etc., CI/CD
• Browser → nginx (GET index.html, static assets)
• React SPA → API services (HTTP calls)
• Jenkins → Docker build → Registry → Deployment