Giter Site home page Giter Site logo

ebook's Introduction

Software Specification and Design pattern work

Kotlin book store

base on http://theory.cpe.ku.ac.th/wiki/index.php/Sw-spec/ebook

TODO

Phase 0

  • List available e-books (with mock-up data repository)
    • The app should show the list of all available book titles with prices (from the mock-up data repository) in a list view with no book cover preview.
    • Implementation info:
      • Use repository pattern.
      • Create book repository class that returns mock-up data.

Phase 1

  • List available e-books (real data)
    • The app should make an HTTP request to get the JSON book data (see below)
    • Implementation info:
      • Extract book repository interface from the mock-up one.
      • Create a real repository that actually makes HTTP requests. (Watch old clips on how to do that with AsyncTask)

Phase 2

  • Basic search functionality
    • The user should be able to search for books by parts of the titles and publication years
    • The user should be able to sort the search result by titles and publication years
      • Implementation info:
      • The search functionality should be implemented in the repository class. It might be good to put the code in some concrete parent class that both the real and the mock-up repository classes extend.

Phase 3

  • Basic account operations: check fund & add fund (all mock-up)
  • Buy an e-book
    • A user can add e-book to the cart
    • A user can check-out all e-books in the cart. Don't forget to check if the user has enough fund in the account.
  • Show list of user's e-books

Phase 4

  • Basic book promotions
    • Load promotion data and show promotions (see below)
    • The app should only show available promotions (ones where the user can only buy--i.e., if a promotion contains books A, B, and C, but the user has already bought book B, the promotion is not available to the user).
    • Buy e-books from the promotion.

Phase 5

  • Show book information after clicking the book on the list with book cover
  • Show book cover (in all book list, and user's collection)
    • The image URLs are in the img_url fields

Phase 6

  • Refund (within 5 minutes)

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.