How revalinampb/fe-restaurant works
Project type and purpose
• This is a single-page, frontend-only web application (“Restaurant”) built with React.js and Vite.
• It provides users with a list of restaurants and detailed views (name, address, rating, cuisine, photos), fetching data from an external REST API via the restaurantService.
File structure
• Top-level files: index.html (app host), Vite/Tailwind/PostCSS configs, package.json, README, .gitignore
• src/ splits into:
• app bootstrap: main.jsx, App.jsx
• routing: src/routes/Router.jsx
• pages: Home.jsx, DetailView.jsx
• components: RestaurantList.jsx, RestaurantCard.jsx
• data-fetching hooks: useRestaurants.js, useRestaurantDetail.js
• service layer: restaurantService.js
• utilities: filterRestaurants.js, imageUtils.js
• assets and global styles
README for additional insights
• Tech stack: React 18, Node (for tooling), deployed on Netlify
• No backend code here—consumes a remote API