How thvnhtai/grab-bootcamp-frontend works
Project type and purpose
• This is a single-page frontend application (“Grab Bootcamp Frontend”) built with React + Vite + TypeScript.
• Its purpose is to let users upload a food image, identify the dish via image analysis, and then fetch & display restaurants serving that dish. It also supports user authentication and shows restaurant details (menus, reviews, location).
File structure
• Top-level files: index.html, vite.config.ts (Vite config), package.json, .env.example, netlify.toml (deployment to Netlify).
• src/ directory:
• assets/ (images, SVGs)
• components/ (UI components organized by domain: common, forms, layout, restaurant, static, utility)
• constants/, enums/
• hooks/ (custom React hooks: useAuth, useRestaurant, etc.)
• layouts/ (BaseLayout, MainLayout)
• pages/ (Auth, Home, Search, SearchResult, Error pages)
• providers/ (AppProvider, AuthProvider, NotificationProvider, ContextProvider)
• redux/ (Redux Toolkit store, slices, transformer, hooks)
• services/ (API calls: recommendation.service.ts, restaurant.service.ts)
• utils/ (api.ts wraps axios, mapper, navigate, common helpers)
• No backend code here—this is purely the front end calling external REST/image APIs.
README for additional insights
• Features section confirms image-based search, restaurant details, user authentication, responsive design, modern UI with Ant Design + Emotion, state management with Redux Toolkit.
• “Technologies Used” lists all major frameworks and libraries.
• README’s Project Structure matches the file layout.