Coder Social home page Coder Social logo

marketplaceapplication's Introduction

Marketplace Application (REST)

Basic system requirements:

  • System from the start has products that can be sold. Each product contains:
  1. Id
  2. Name
  3. Price
  • System from the start has users that can buy products. Each user has:
  1. Id
  2. First name
  3. Last name
  4. Amount of money
  • System has menu that supports next operations:
  1. Display list of all users
  2. Display list of all products
  3. User should be able to buy product, to do this operation we should enter:ID of user who want to buy productId of product which user want to buy
    • If user doesn't have enough money to buy product, throw exception
    • If user successfully bought the product display message about successful purchase
    • When user is buying product, his amount of money decreases by product price
    • After successful purchase, information about user and his products has to be stored in collection best suited for that purpose
  4. Display list of user products by user id (If user didn't buy anything yet, don't show anything)
  5. Display list of users that bought product by product id (If nobody bought this product yet, don't show anything)

Medium system requirements:

  • System starting without users and products, add next operations to menu:
    • Ability to add new users to the system (with autogenerated id, not null fields validation and check for numbers in amount of money field)
    • Ability to add new products to the system (with autogenerated id, not null fields validation and check for numbers in price field)
  • Ability to delete products and users, if product deleted, it has to disappear from all users purchases
  • If exception is thrown, don't crash application and show menu again, display error message to understand reason of error

Advanced system requirements:

  • Add Spring Boot to application
  • Add relational database and Hibernate to application for persistence storage
  • Get rid of console menu and move all the logic to REST endpoints
  • Implement global error handling and user-friendly exception messages with correct HTTP statuses

marketplaceapplication's People

Contributors

roman-andriiv 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.