Skip to content

Server side java code of a fake Book-Store for academic case studies.

License

Notifications You must be signed in to change notification settings

m5c/BookStoreInternals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Book Store

Legacy java code of a playground Book-Store for academic case studies.

version coverage building

About

This code imitates server side core functionality of a bookstore chain. It is not a complete implementation of an operational bookstore, but it provides entry points to imitate server data interactions.
The following scenario / functionality is covered:

  • The bookstore indexes books by ISBN. A book is only known to the bookstore if it has been indexed.
    All indexed books have:
    • A price in CAD
    • A title
    • An author
    • An abstract / description
  • The bookstore chain has agencies in different cities.
    • There can not be two agencies in the same city
    • Each city has a stock, that tells the amount in store for the indexed books.
  • The bookstore chain stores reader feedback for books (comments)
    • Comments are anonymous and have no author
    • Only indexed books can be commented
    • Comments can be updated
    • Comments must not be empty

Documentation

  • For a full description of available functionality, read the JavaDoc
  • The relevant functionality is exposed by three interfaces:

Usage

On execution, the bookstore will simply print a listing of persisted initial dummy data.

  1. Get the sources:
    git clone https://github.com/kartoffelquadrat/BookStoreInternals.git

  2. Compile the project with maven. This provides you with a self contained jar in the targetfolder:
    mvn clean package

  3. Run the jar:
    java -jar target/BookStore.jar

Invokation

If you want to use the bookstore as dependency:

  • First compile it with:
    mvn clean install

  • Then reference it, using this dependency block

   <dependency>
       <groupId>eu.kartoffelquadrat</groupId>
       <artifactId>bookstoreinternals</artifactId>
       <version>1.3</version>
   </dependency>

Contact / Pull Requests

About

Server side java code of a fake Book-Store for academic case studies.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages