How pinchlabs-lfg/frontend-interview-question-set works
Project type and purpose
• This is a front-end single-page application (SPA) built with React, TypeScript, and Vite.
• Its goal is to provide a minimal, fast-refresh-enabled template that developers can extend with their own pages, API calls, styling, and build configuration.
File structure
• Top-level files
• index.html – the SPA entry point served by Vite
• vite.config.ts – Vite build/dev server configuration
• package.json / package-lock.json – scripts, dependencies, and lockfile
• tsconfig*.json – TypeScript compiler and project settings
• eslint.config.js – linting rules and plugins
• public/
• Static assets copied verbatim into the final build (favicon, manifest, etc.)
• src/
• main.tsx – bootstraps React into the DOM
• App.tsx / App.css – root React component and styles
• router/index.tsx – client-side route definitions (e.g. using react-router)
• pages/Question1.tsx, pages/Question2.tsx – page-level components rendered via the router
• api/ApiClient.ts, interceptors.ts, types.ts – centralized HTTP client, interceptors for auth/error handling, and shared type definitions
• assets/ – imported images, fonts, etc.
• index.css – global styles
• question.ts – domain logic or shared utilities
README for additional insights
• Primary focus is on Vite’s fast refresh and minimal React + TS setup
• ESLint config extensibility for type-aware linting
• Optional plugins for styling and stricter type checks
Detail is paramount
• Explicitly show type definitions and interceptors as part of the API layer