Project 2 for Harvard's CS50w Web Programming with Python and JavaScript.
📹 Youtube:
https://www.youtube.com/watch?v=Qnhv8x9NEZI
An e-commerce auction site which allows users to post listings, place bids, comment, and add listings to a watchlist.
Built with Python
, Django
, HTML/CSS
, Bootstrap
, and SQLite
.
The site also makes use of Django's humanize template filters, intcomma
and naturaltime
.
- Pip install
Django
- In the terminal, cd into the commerce directory.
- Run
python3 manage.py makemigrations commerce
to make migrations for the commerce app. - Run
python3 manage.py migrate
to apply migrations to the database. - Run
python3 manage.py runserver
to start the Django web server and visit the website in the browser.
Users can create a new listing, specify a title
, description
, price
, imageURL
, and category
.
Users can choose from a list of alphabatized
categories: Art
, Books
, Clothing
, Electronics
, Food
, and Other
by clicking on the name of a category it takes the user to said category page.
The default route allows users to view all current active listings displaying: title
, description
, current price
, and photo
. If the user clicks on Details
of a given listing, it will diplay more information per that listing such as: number of bids
, last bid made
,number of watchers
, comments
, and number of comments
.
Users can add listings to their Watchlist page, which displays all of the listings a user has added to their watchlist.
If the user is the owner of the auction, they can close the auction, the winning bid price is displayed, and the user who won the auction will be notified they won the auction.
Closed listings showcases the winner of each closed auction and the details therein.
Using Django Admin
and SQLite3
as the backend, the Python models are rendered to the Django framework alphabetically
as Bids
, Categorys
, Comments
, Listings
, Users
.
But seriously whole stole... BOY WITH APPLE 🍏?