✨ LIVE DEMO ✨
Local Bytes is a lightweight, responsive restaurant explorer app. Search by dish or cuisine and view recommended dishes.
Restaurant data is handled via a straightforward CSV-to-JSON workflow:
- Shared CSV: Users maintain a shared CSV file containing restaurants visited, favourite dishes, and location details. When new entries are added, the CSV is added to
src/datafor the next app refresh. - Conversion to JSON: Before running or building the app, the CSV is converted to JSON using the built-in utility (
npm run convert). This JSON is what the app reads at runtime. - Static site usage: The app renders restaurant data directly from the JSON. No database is required, keeping the site fast and mobile-friendly.
flowchart TD
style CSV fill:#fef3c7,stroke:#f59e0b,stroke-width:2px
style Converter fill:#fce7f3,stroke:#ec4899,stroke-width:2px
style JSON fill:#dbeafe,stroke:#3b82f6,stroke-width:2px
style App fill:#d1fae5,stroke:#10b981,stroke-width:2px
style Contributor1 fill:#fef2f2,stroke:#ef4444,stroke-width:2px
style Contributor2 fill:#fef2f2,stroke:#ef4444,stroke-width:2px
Contributor1["🐦 Contributor 1"] --> CSV["📂 Shared CSV File"]
Contributor2["🐿️ Contributor 2"] --> CSV
CSV --> Converter["✨ CSV-to-JSON Converter"]
Converter --> JSON["📄 Generated JSON"]
JSON --> App["💻 Local Bytes App"]
- Clone this repo to your local machine.
- Install dependencies:
npm i(ornpm install). - Create file
restaurants.csvinsidesrc/data, usingexample.restaurants.csvas a reference to ensure correct headers and formatting.
- Run
npm run dev. - The development app will be served at http://localhost:5173.
- Run
npm run build. - Static pages ready for deployment will be generated inside the dist folder.
- Run
npm run preview. - The production app will be served at http://localhost:4173.

