How khushalgrover/spotdifference-eklavya-assessment works
Project type and purpose
• This is a single-page application (SPA) built with React and Vite, meant to deliver a “Spot the Difference” assessment game.
• There is no separate backend: it’s a client-side app that loads static JSON configurations and image assets, handles all game logic in the browser, and is deployed as a static site (e.g., on Vercel).
File structure
• Top-level build & config:
• vite.config.js, tsconfig*.json, eslint.config.js, package.json, vercel.json
• Public assets:
• public/images/source.psd (and any derived image assets)
• Source code under src/:
• src/main.jsx + src/index.css – app entry point and global styles
• src/App.jsx + src/App.css – root component, global layout
• src/routes/ – React Router setup (AppRouter.jsx, index.jsx)
• src/pages/ – three main screens: HomeScreen, GameScreen, AdminScreen
• src/components/ – reusable or screen-specific React components (HowToPlay, game-loader, etc.)
• src/components/ui/ – atomic UI primitives (button, input, dialog, badge, card, tabs, label)
• src/config/screen-config.json & components.json – static game/config data
• src/lib/utils.ts & src/utils/gameConfigUtils.js – shared utility functions and game logic
README
• Confirms React + Vite with HMR, ESLint setup
• Mentions optional TS integration (this project uses JS/TS hybrid)
• Project name: SpotDifference-Eklavya-Assessment