A simple yet effective web app that analyzes book reviews and generates a sympathy score for each review.
This project uses:
- Flask
- MongoDB
- HTML, CSS, JavaScript
- Clean UI for submitting reviews
- Automatic sympathy scoring
- MongoDB storage
- Flask API endpoints
- Includes JSON dump of DB collections for instant setup
- Open MongoDB Compass
- Create a database named Book
- Import:
Book.books.json Book.reviews.json Book.scores.json Book.users.json - Compass will automatically create the required collections.
git clone https://github.com/your-username/sympathy-analyzer.git
cd sympathy-analyzer
pip install -r requirements.txt
client = MongoClient("mongodb://localhost:27017/")
db = client["Book"]
python app.py
Visit:
http://127.0.0.1:5000/
Contributions and suggestions are welcome.