Bibliobazaar is an e-commerce book-selling website developed using Django, designed to provide a seamless experience for buying and selling books online. This README provides an overview of the project, its features, and how to set it up.
-
User Authentication:
- Users can register and login
-
Book Catalog:
- Browse and search a wide selection of books.
- View book details, including title, author, price, and description.
- Click on a book to get the detailed description of a book.
-
Shopping Cart:
- Add books to the shopping cart.
- Update cart contents (add or remove items).
- Calculate the total price of items in the cart.
-
Checkout:
- Secure checkout process for customers.
- Enter shipping details and payment information.
-
Payment Integration:
- Integration with Razorpay for secure and convenient payments.
- Supports various payment methods.
-
Request a Book:
- Users can request books that are not available on the website.
- Admin can review and add requested books to the catalog.
-
Buy and Sell Used Books:
- Users can sell their used books to Bibliobazaar.
- Customers can purchase used books from other users.
Follow these steps to set up and run Bibliobazaar on your local environment:
-
Clone the repository
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate
-
Install dependencies:
pip install -r requirements.txt
-
Payment Integration with Razorpay:
- To enable payment integration with Razorpay, you must have a Razorpay account.
- Obtain your Razorpay API credentials and paste them in the
settings.py
file.
-
Run database migrations:
python manage.py makemigrations python manage.py migrate
-
Create a superuser account:
-
You can log in as a superuser to manage the app using the Django admin panel.
-
Use the following command to create a superuser account:
python manage.py createsuperuser
-
You can access the Django admin panel by visiting
http://localhost:8000/admin/
after starting the server.
-
-
Start the development server:
python manage.py runserver
-
Visit http://localhost:8000/ to explore and use the Bibliobazaar website.