InstantBooks is an online bookstore project built using Django framework. It allows users to browse through a collection of books, make purchases, and interact with an admin panel for managing products.
-
Get Paytm Merchant Key and MID: Obtain MERCHANT KEY and MID from Paytm and update it in
shop/views.py
before running the project. -
Admin Credentials:
- Username: nikhilhooda
- Password: nikhil123
-
User Credentials:
- Username: user1, Password: 1234
- Username: user2, Password: 1234
-
Required Libraries:
- Install Pillow:
pip install pillow
- Install pycryptodome:
pip3 install pycryptodome
- Install Pillow:
Use the following payment details for testing purposes:
- Mobile number: 77777 77777
- Password: Paytm12345
- OTP: 489871
Note: Do not attempt to make payments with official Paytm accounts or valid Debit/Credit cards in the development environment.
-
Open CMD, PowerShell, or Terminal/CommandShell of any IDE.
-
Navigate to the root folder where
manage.py
file is located. -
Run command:
python manage.py runserver
-
Open any browser and go to
127.0.0.1:8000
. -
You should see the homepage of InstantBooks.
-
Run the server.
-
Open a browser and visit
127.0.0.1:8000/admin
. -
Log in with the provided admin username and password.
-
Log in as an admin.
-
Go to products section.
-
Click "Add products" and provide valid details of the new product.
-
Visit the homepage to confirm the addition of the new product.
-
Navigate to the root folder.
-
Run the following command:
python manage.py changepassword <admin_username>.
-
Provide a new password.
- The payment gateway is for development purposes only and should not be used for real-world transactions.
- Payment failures may occur frequently in the development environment. Ensure all required fields are filled and retry if necessary.
- For any queries, contact the project writer.