ผลต่างระหว่างรุ่นของ "Sw-spec/ebook"

จาก Theory Wiki
ไปยังการนำทาง ไปยังการค้นหา
แถว 1: แถว 1:
 
In this project you will have to develop a simple e-book shop application.
 
In this project you will have to develop a simple e-book shop application.
 +
 +
== Your work ==
 +
* Implement the following functionalities (in phases).
 +
* Before actual coding for each use case or feature, sketch a sequence diagram for it first.
  
 
== Functions ==
 
== Functions ==
แถว 12: แถว 16:
  
 
== Goals ==
 
== Goals ==
 +
 +
=== Phase 0 ===
 +
* List available e-books (with mock-up data repository)
 +
** Use repository pattern.
 +
** Create book repository class that returns mock-up data.
 +
** The app should show the list of all available book titles with prices in a list view with no book cover preview.
  
 
=== Phase 1 ===
 
=== Phase 1 ===
* List available e-books
+
* List available e-books (real data)
** The app should make an HTTP request to get the JSON book data (see below) and show the list of all available book titles with prices in a list view with no book cover preview.
+
** The app should make an HTTP request to get the JSON book data (see below)
  
 
=== Phase 2 ===
 
=== Phase 2 ===
แถว 30: แถว 40:
  
 
=== Phase 4 ===
 
=== Phase 4 ===
 +
* Show book cover
 +
** The image URLs are in the img_url fields
 +
 +
=== Phase 5 ===
 
* Basic book promotions  
 
* Basic book promotions  
 
** Load promotion data and show promotions (see below)
 
** Load promotion data and show promotions (see below)
แถว 35: แถว 49:
 
** Buy e-books from the promotion.
 
** Buy e-books from the promotion.
  
=== Phase 5 ===
+
=== Phase 6 ===
 
* Refund (within 5 minutes)
 
* Refund (within 5 minutes)
  
แถว 44: แถว 58:
 
* '''Books''': https://theory.cpe.ku.ac.th/~jittat/courses/sw-spec/ebooks/books.json
 
* '''Books''': https://theory.cpe.ku.ac.th/~jittat/courses/sw-spec/ebooks/books.json
 
* '''Promotions''':
 
* '''Promotions''':
 +
 +
== Other technical references ==

รุ่นแก้ไขเมื่อ 03:48, 20 เมษายน 2560

In this project you will have to develop a simple e-book shop application.

Your work

  • Implement the following functionalities (in phases).
  • Before actual coding for each use case or feature, sketch a sequence diagram for it first.

Functions

  • List available e-books
  • Basic search functionality
  • Basic account operations: check fund & add fund
  • Buy an e-book
  • Show list of user's e-books
  • Refund (within 5 minutes)
  • Basic book promotions

Goals

Phase 0

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

Phase 1

  • List available e-books (real data)
    • The app should make an HTTP request to get the JSON book data (see below)

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

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

  • Show book cover
    • The image URLs are in the img_url fields

Phase 5

  • 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 6

  • Refund (within 5 minutes)

Data

The book data was scraped from [1].

Other technical references