Description : Web Application to Buy & Sell Scrap Items
Tech Stack : Django, SQLite3, Bootstrap, VanillaJS
Overview :
- Django : Manages CRUD operations for items and users data storage within a database
- SQLite3 Database : Provides database storage for items and users information
- Boostrap : Renders backend endpoints to support dynamic user interface rendering
- VanillaJS : Manages additional functionalities for Twilio and Razorpay integrations
How to Run (Windows) :
- Install requirements.txt to install necessary packages [pip install -r requirements.txt]
- Go to nexscrap -> settings.py -> Edit line nos. 133-138 and add your own Razorpay and Twilio credentials
- Run server on localhost [python manage.py runserver]
- Go to http://localhost:8000 on your browser to visit Nexscrap Home
- Go to http://localhost:8000/admin on your browser to visit Admin Panel
Pre-Existing User Credentials :
- Superuser -> Username : admin, Password : admin123
- User1 -> Username : buyer, Password : buyer123
- User2 -> Username : seller, Password : seller123
How to Remove existing DB & Make new DB :
- Delete the db.sqlite3 file
- Create new migration [python manage.py makemigrations]
- Run the new migration [python manage.py migrate]
- Create new Superuser [python manage.py createsuperuser]
Sample Screenshot :
API Documentation :
- Homepage -> GET /
- Search Items -> GET /search
- Add Item to Database -> POST /add_item
- View Item Description -> GET /item_description/{pk}
- View Item Image -> GET /item_image/{pk}
- Add Item to Cart -> POST /add_to_cart/{pk}
- View Order List -> GET /order_list
- Remove Item from Cart -> POST /remove_from_cart/{pk}
- Checkout Page -> GET /checkout
- Process Payment -> POST /payment
- Handle Payment Request -> POST /handlerequest
- View Invoice -> GET /invoice