Coder Social home page Coder Social logo

xuanniee / commerce-django Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 639 KB

Commerce is an e-commerce auction site like E-Bay, built using the Django Framework. It allows Users to post auction listings, bid on auctions, comment on listings, and watchlist them.

Python 67.07% SCSS 3.33% HTML 29.60%

commerce-django's Introduction

Commerce Auction Site (Django)

Project Description

Commerce is an e-commerce auction site like E-Bay, built using the Django Framework. It allows Users to post auction listings, bid on auctions, comment on listings, and watchlist them.

Content

1. Django Models

Contains 5 Models for User, Listing, Bid, Comment, and Watchlist

2. Create Listing

Picture for Creating a New Listing When the User is authenticated, there is a navigation link that allows the User to create a new listing on the Navbar. The User can then specify the Title, Description, Starting Bid, and optionally provide an Image and/or Category as shown above.

3. Active Listings Page

Picture for Active Listings The default route for the web application, containing all the listings that are still active made by all the Users. Each listing displays the Title, Current Price, Description, and Photo (if there is one).

Clicking on any of the listings will redirect the User to that specific listing's page, allowing Users to view all the details about the listing.

4. Listing Page

Picture for Listing Page

If the User is authenticated:

  • They can watchlist the listing if it is not already in the Watchlist, or remove it otherwise.
  • User can bid on an item, assuming the bid is at least as large as starting bid and larger than any other bids. Otherwise, an alert will notify the User of the error.
  • If the User is the owner of the listing, they can close the auction, making the listing inactive and the current highest bidder, the winner.
  • If the User has won the listing, there will be a notice, informing the User for winning the auction.
  • Users can comment on the listing.

5. Watchlist

Picture for Valid Watchlist If the User is authenticated, the page will display all the listings that the User has watchlisted. Clicking any of the listings will bring the User to the specific listing page as well.

Picture for Empty Watchlist However, if the Watchlist is empty, there will be a notice notifying the User of the status.

6. Categories

Picture for Categories Clicking the Categories Tab on the Navbar will redirect the User to a page containing links to all the different categories available as shown above. Clicking on any of the categories will then bring the User to a page filled with listings that fulfil the criteria.

7. Django Admin Interface

Picture of Admin Interface A site administrator should be able to view, add, edit, and delete any listings, comments, and bids made on the site.

Learning Outcomes

  • Learnt SQL and Relational Databases Basics.
  • Familiarised with SQLite3.
  • Learnt to use Django Models to work with Databases instead of SQL queries.
  • Learnt about Django Migrations.
  • Learnt to use the Python Shell to query our database using Python Commands.
  • Learnt to make use of Django Admin to create, edit, and delete objects in the database.
  • Learnt about Many-to-Many and One-to-Many Relationships.
  • Learnt to implement User Authentication via Django

Video Link

https://youtu.be/FYlje11QzKY

commerce-django's People

Contributors

xuanniee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.