{"id":23283844,"url":"https://github.com/usmanx191/book-recommendation-system","last_synced_at":"2026-05-07T04:36:15.278Z","repository":{"id":268219957,"uuid":"901033177","full_name":"usmanX191/Book-Recommendation-System","owner":"usmanX191","description":"This project is a book recommendation system using the Google Books API to suggest books based on user preferences like genre, author, or keywords. It features a FastAPI backend, a Streamlit frontend for user input, and an OpenAI-powered AI chatbot for query assistance and personalized recommendations.","archived":false,"fork":false,"pushed_at":"2024-12-17T11:16:30.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T20:51:22.214Z","etag":null,"topics":["fastapi","google-books-api","openai-api","openai-assistant-api","python","streamlit"],"latest_commit_sha":null,"homepage":"https://book-recommendation-system-react-app.replit.app/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/usmanX191.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-09T23:15:48.000Z","updated_at":"2024-12-20T03:16:14.000Z","dependencies_parsed_at":"2024-12-15T10:23:19.208Z","dependency_job_id":"c081e2b7-ae71-4437-9f5c-4b472f6323f7","html_url":"https://github.com/usmanX191/Book-Recommendation-System","commit_stats":null,"previous_names":["usmanx191/book-recommendation-system"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usmanX191%2FBook-Recommendation-System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usmanX191%2FBook-Recommendation-System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usmanX191%2FBook-Recommendation-System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usmanX191%2FBook-Recommendation-System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usmanX191","download_url":"https://codeload.github.com/usmanX191/Book-Recommendation-System/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247500454,"owners_count":20948878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fastapi","google-books-api","openai-api","openai-assistant-api","python","streamlit"],"created_at":"2024-12-20T01:34:53.014Z","updated_at":"2025-10-10T02:32:26.840Z","avatar_url":"https://github.com/usmanX191.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Book Recommendation System Assistant\n\nThis project is a book recommendation system that leverages the Google Books API to recommend books based on user preferences such as genre, author, or keywords. It features a backend service built with FastAPI and a frontend interface developed using Streamlit for interactive user input. Additionally, it incorporates the OpenAI Assistant API to assist with user queries, providing an AI-powered chatbot experience for enhanced user interaction and personalized recommendations.\n\n## Streamlit Front-End View\n\n- Click here to View [Streamlit Front-End](https://book-recommendation-system.replit.app/)\n\nhttps://github.com/user-attachments/assets/6a2a3ef7-e72c-4089-b519-093d3de0edb9\n\n![book-recommendation-system](https://github.com/user-attachments/assets/3652466a-830c-4441-b056-6bee6fced15e)\n\n## React Front-End View\n\n- Click here to View [React Front-End](https://book-recommendation-system-react-app.replit.app/)\n\n![Screenshot 2024-12-17 155618](https://github.com/user-attachments/assets/025e8a3b-cc87-46e3-9c39-aacb3ef66585)\n\n![Screenshot 2024-12-17 155657](https://github.com/user-attachments/assets/0d8ba768-ab43-4698-8230-bf29e182ce55)\n\n![Screenshot 2024-12-17 155736](https://github.com/user-attachments/assets/1528e684-807a-4837-bc3d-e559d7ed67dc)\n\n## Project Workflow\n\n### Input\n- User provides preferences such as:\n- Genre (e.g., \"fantasy,\" \"science fiction,\" \"romance\")\n- Optional author or keyword filter\n\n### Processing\n- Query the Google Books API using the provided genre and optional filters.\n- Extract and format relevant book details like title, author, description, and average rating.\n\n### Output\n- Return a list of book recommendations, including:\n- Title, author, genre\n- A brief description\n- Average rating (if available)\n\n## Files in the Project\n\n- **main.py**: Backend file using FastAPI to handle API requests for fetching book recommendations.\n- **frontend.py**: Frontend file using Streamlit to provide an interactive UI for the user to enter preferences.\n- **requirements.txt**: List of dependencies required for the project.\n- **.gitignore**: Specifies files and directories to be ignored by Git.\n- **.env**: Environment variables for sensitive information like API keys.\n- **__pycache__**: Compiled Python files.\n- **myenv**: Virtual environment folder for the project.\n\n## How to Run the Project\n\n### Prerequisites\n\nMake sure you have the following installed:\n- Python 3.x\n- Streamlit\n- FastAPI\n- Google Books API access (for fetching book data)\n\n### Setup\n\n1. Clone this repository to your local machine.\n2. Navigate to the project folder and create a virtual environment:\n   - python -m venv myenv\n\n3. Activate the virtual environment:\n   - On Windows:\n      - myenv\\Scripts\\activate\n   - On macOS/Linux:\n      - source myenv/bin/activate\n\n4. Install the required dependencies:\n   - pip install -r requirements.txt\n\n5. Running the Backend (Start the FastAPI server)\n   - myenv\\Scripts\\activate\n   - python main.py\n     \n6. The backend will be running at http://localhost:8000.\n\n## Running the Frontend (Streamlit)\n\n1. Open New Terminal \u0026 Start the Streamlit frontend:\n   - myenv\\Scripts\\activate \n   - streamlit run frontend.py\n     \n2. The frontend will be running at http://localhost:8501.\n\n3. The frontend will open in your browser, where you can provide inputs like genre and receive book recommendations.\n\n## Example Output\n\nFor user input like \"Recommend books in the fantasy genre,\" the output will look something like this:\n\n1. The Hobbit by J.R.R. Tolkien\n\n   - Description: Bilbo Baggins embarks on an epic journey...\n   - Rating: 4.7\n   - More Info: The Hobbit\n\n2. Harry Potter and the Sorcerer's Stone by J.K. Rowling\n\n   - Description: A young wizard begins his magical education...\n   - Rating: 4.8\n   - More Info: Harry Potter\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Acknowledgements\n\n- Google Books API: Used for fetching book data.\n- FastAPI: Used for backend development.\n- Streamlit: Used for frontend development.\n- OpenAI Assistant API: Used for assistance with user queries\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusmanx191%2Fbook-recommendation-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusmanx191%2Fbook-recommendation-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusmanx191%2Fbook-recommendation-system/lists"}