mamume / commerce-web50

Commerce - CS50's Web Programming with Python and JavaScript Project 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Commerce

An eBay-like e-commerce auction site.

Description

An auction site made with Django that will allow users to post auction listings, place bids on listings, comment on those listings, and add listings to a “watchlist.”

Installation

pip install -r requirement.txt

Database Processing

python mange.py makemigrations
python manage.py migrate

Run Project

python manage.py runserver

Specification

  • Models: The application has three models in addition to the User model: one for auction listings, one for bids, and one for comments made on auction listings.
  • Create Listing: Users are able to visit a page to create a new listing. They are able to specify a title for the listing, a text-based description, and what the starting bid should be. Users optionally are able to provide a URL for an image for the listing and/or a category (e.g. Fashion, Toys, Electronics, Home, etc.).
  • Active Listings Page: The default route of your web application lets users view all of the currently active auction listings. For each active listing, this page displays the title, description, current price, and photo (if one exists for the listing).
  • Listing Page: Clicking on a listing takes users to a page specific to that listing. On that page, users are able to view all details about the listing, including the current price for the listing.
    • If the user is signed in, the user is able to add the item to their “Watchlist.” If the item is already on the watchlist, the user is able to remove it.
    • If the user is signed in, the user is able to bid on the item. The bid must be at least as large as the starting bid, and must be greater than any other bids that have been placed (if any). If the bid doesn’t meet those criteria, the user should be presented with an error.
    • If a user is signed in on a closed listing page, and the user has won that auction, the page should say so.
    • Users who are signed in are able to add comments to the listing page. The listing page displays all comments that have been made on the listing.
  • WatchList: Users who are signed in are able to visit a Watchlist page, which displays all of the listings that a user has added to their watchlist. Clicking on any of those listings takes the user to that listing’s page.
  • Categories: Users are able to visit a page that displays a list of all listing categories. Clicking on the name of any category takes the user to a page that displays all of the active listings in that category.
  • Django Admin Interface: Via the Django admin interface, a site administrator is able to view, add, edit, and delete any listings, comments, and bids made on the site.

For more details: Commerce - CS50's Web Programming with Python and JavaScript

About

Commerce - CS50's Web Programming with Python and JavaScript Project 2


Languages

Language:Python 66.5%Language:HTML 31.7%Language:CSS 1.8%