Skip to content

D-Coder1112/restaurant-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Restaurant Listing (React + TypeScript, Node + TypeScript, MongoDB)

Summary

A simple Zomato/Swiggy-like restaurant listing page with live search, filters, sorting and pagination. Full-stack example using React + TypeScript frontend and Node.js + TypeScript backend with MongoDB.

Setup (local, tested)

Prerequisites

  • Node.js 18+
  • npm or yarn
  • MongoDB (local) or MongoDB Atlas connection string

Backend

  1. cd backend
  2. Copy .env.example to .env and set MONGO_URI and PORT if desired. Default: mongodb://127.0.0.1:27017/restaurant-app
  3. Install: npm install
  4. Seed sample data: npm run seed
  5. Start dev server: npm run dev
    • Server runs on http://localhost:4000 by default
  6. API: GET /api/restaurants?q=&page=1&limit=10&cuisine=Indian,Italian&minRating=4&sort=rating

Frontend

  1. cd frontend
  2. Install: npm install
  3. Create .env:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published