A full-stack web application for restaurant recommendations with filtering and search capabilities. The dataset should be in .json format.
- Python 3.10 or higher
- Node.js 14 or higher
- MongoDB
- Git
git clone https://github.com/PhaneeChowdary/RestaurantsRecommendation.git
cd RestaurantsRecommendation# Navigate to backend directory
cd backend
# Create virtual environment
python -m venv db_env
# Activate virtual environment
# On Windows:
db_env\Scripts\activate
# On macOS/Linux:
source db_env/bin/activate
# Install dependencies
pip install -r requirements.txt
# Create .env file with your MongoDB configuration
echo "MONGODB_URI=mongodb://localhost:27017
DB_NAME=restaurants_db" > .env# Navigate to frontend directory
cd ../frontend
# Install dependencies
npm installEnsure MongoDB is running on your system:
# On macOS/Linux
mongod
# On Windows
# Start MongoDB service through Windows Services# In the backend directory with virtual environment activated
python app.pyThe backend server will start on http://localhost:5001
# In the frontend directory
npm startThe frontend will start on http://localhost:3000
- Restaurant search by city
- Price range filtering
- Advanced filters for categories and amenities
- Restaurant details including ratings and reviews
- CRUD operations for restaurants
- Responsive design
GET /api/restaurants- Get restaurants with filtersGET /api/categories- Get all available categories
POST /api/restaurants- Create new restaurant
PUT /api/restaurants/<id>- Update restaurant
DELETE /api/restaurants/<id>- Delete restaurant
- Frontend: React.js, Tailwind CSS
- Backend: Flask, Python
- Database: MongoDB
- API: RESTful API
- State Management: React Hooks