Skip to content

🍔 Local Bytes is a lightweight, responsive restaurant explorer app. ✨LIVE DEMO✨ Search by meal or cuisine and view recommended dishes.

Notifications You must be signed in to change notification settings

kazvee/local-bytes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

109 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local Bytes 🍔

LIVE DEMO

Description & Use Case

Local Bytes is a lightweight, responsive restaurant explorer app. Search by dish or cuisine and view recommended dishes.

Screenshots

Mobile View

Local Bytes Mobile View

Desktop View

Local Bytes Desktop View

Data Update Flow

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/data for 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.

Workflow Diagram 📑

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"]
Loading

Built With 👩‍💻

Thanks & Acknowledgements 🤗

Installation 💻

  • Clone this repo to your local machine.
  • Install dependencies: npm i (or npm install).
  • Create file restaurants.csv inside src/data, using example.restaurants.csv as a reference to ensure correct headers and formatting.

Start the Development Server

Build the Production-Ready Application

  • Run npm run build.
  • Static pages ready for deployment will be generated inside the dist folder.

Start the Production Server

About

🍔 Local Bytes is a lightweight, responsive restaurant explorer app. ✨LIVE DEMO✨ Search by meal or cuisine and view recommended dishes.

Topics

Resources

Stars

Watchers

Forks