GithubHelp home page GithubHelp logo

django-auctions's Introduction

Django Auctions

Objetive

Build a system to manage auctions and lots and a public endpoint to query the auction details data given an auction id.

Requirements

  1. Create a new django app called auctions
  2. Add the models to represent auctions and lots. For the auctions we need to be able to capture the name (required and max 150 characters), description (not required) and start date and time for the auction (required), Also we need to store the lots or items that are to sell in an auction event. For the lots we will need to capture the name of the item (required and max 150 characteres), the description (not required), and the starting sale price (required and we need a maximum of 10 digitis including 2 decimals). Ideally we would be able to query the lots from an auction instance like this auction_instance.lots.all() and the auction for a particular lot as follows lot_instance.auction()
  3. This models should be managed from the django admin section.
  4. Build a public endpoint to get the sale detail data including it's related lots. ie: /auctions/1/
  5. Add the logic needed to amend the data returned in the endpoint so the lot price includes VAT (20%)
  6. Add tests (what do you think it'd be good to test)

Bonus points

  1. Add to the models created and updated fields, using inherintance.
  2. Config the admin so we can manage lots from the Auction details page.
  3. Add crud endpoints for the auction resource

django-auctions's People

Watchers

 avatar  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.