A Yelp-like web application that allows users to discover, review, and manage businesses. Built with Flask and PostgreSQL.
- User Authentication
- Business account creation and login
- Customer account creation and login
- Business Management
- Create and edit business profiles
- View business details
- Manage business information
- Search and Discovery
- Search for businesses
- View business details
- Browse reviews and tips
- Review System
- Post reviews for businesses
- React to reviews
- Post tips
- Praise tips
the-spot/
├── app.py # Main application file
├── database/ # Database related files
├── static/ # Static assets (CSS, JS, images)
├── templates/ # HTML templates
│ ├── login/ # Login and account creation pages
│ └── manage/ # Business management pages
└── utils/ # Utility functions and helpers
- Ensure you have Python and PostgreSQL installed
- Set up the database:
- Create a database named "yelpDB"
- Update the database connection settings in
app.py
- Install dependencies:
pip install flask psycopg2
- Run the application:
python app.py
Before running the application, make sure to:
- Update the
USERNAMEvariable inapp.pywith your PostgreSQL username - Configure the database connection settings if needed:
- Database name: "yelpDB"
- Host: "/tmp"
- Port: 8888
/api/login/business- Business login/api/login/customer- Customer login/api/login/create-business- Create business account/api/login/create-customer- Create customer account
/api/businesses- Get user's businesses/api/business- Get business details/api/business/update- Update business information/api/business/create- Create new business
/api/business/review- Post a review/api/business/tip- Post a tip/api/business/tip-praise- Praise a tip/api/business/review-reaction- React to a review
Feel free to submit issues and enhancement requests.
This project is licensed under the MIT License.