This project is a book management website developed using React and Vite for the front-end and Python FastAPI for the back-end. Users can upload books, categorize them, view summaries, and manage their book collections. Summaries are generated using Llama models running locally.
- Upload Books: Users can upload books to the platform.
- Categorize Books: Each book is automatically categorized (e.g., Fiction, Biography, Autobiography, Sports).
- View Books: Users can view a list of all uploaded books.
- Generate Summaries: Users can generate summaries for each book using Llama models running locally.
git clone <repository_url>
cd <repository_folder>/frontend
npm install
npm run devNavigate to the Backend Directory:
Create and Activate a Virtual Environment:
python -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`
Install Dependencies:
pip install -r requirements.txt
Run the FastAPI Server:
uvicorn main:app --reload
Ensure you have PostgreSQL installed and set up. Update the database URL in the FastAPI configuration file. SQLAlchemy is used to connect to the PostgreSQL database. There is a table for storing the books and their details.
Ensure you have the Llama models set up locally. Update the model path in the FastAPI configuration file.
Upload Books:
- Navigate to the upload section on the website.
- Upload a book file.
View Books:
- Navigate to the books section to see all uploaded books.
- Click on a book to see its details.
Generate Summaries:
- Select a book.
- Click on the "Generate Summary" button to get a summary of the book.
Front-end:
- React
- Vite
- Tailwind CSS
Back-end:
-
FastAPI
-
OpenAI API
-
PostgreSQL
-
llama models
-
SQLAlchemy




