How sauravkunwar321/swadilo_food works
Project type and purpose
• This is a single-page front-end application built with React and Vite.
• By inspecting the folder names and README, we see it’s a client-side “food ordering” or “catalog” demo, using in-memory data (FoodData.js) and Redux slices (cart, category, search) to model state.
File structure
• Top level
• package.json, vite.config.js, eslint.config.js → build and lint configuration
• index.html → SPA shell
• components/ → reusable UI widgets (Cart, Navbar, FoodItem, etc.)
• public/ → static assets served by Vite
• src/
• main.jsx → React entry point
• App.jsx → root component hosting React Router or conditional page rendering
• Data/FoodData.js → static dataset
• assets/ → images, fonts, etc.
• pages/ → top-level routes (Home, Success, Error)
• redux/ → Store.js + slices (CartSlice, CategorySlice, SearchSlice) for centralized state
README for additional insights
• It’s the default Vite React template, leveraging either Babel or SWC for HMR.
• No backend or API integrations are shown—this is purely a front-end demo.