Coder Social home page Coder Social logo

shoppingbasket's Introduction

shoppingbasket

------------------------------------ Development Exercise ---------------------------------------------

Please create a web application for the Shopping Basket that will use MySQL as the database.

It should implement the following features:

  1. Create a basket for the customer
  2. Add and remove items inside the basket
  3. A list of all the items of a basket
  4. Get the total price on all the baskets of the customer

Assumptions & Limitations

  1. 1 basket per customer
  2. No changing of customer
  3. Hard coded data for database, plugged in when started

Notes:

  1. I used crudrepository and hibernate jpa to be database agnostic. this Should run on mysql, just change the application.properties entries.
  2. Shopping Basket is stored in session
  3. Since I was instructed to use only 4-5 hours and for simplicity, I used simple JSP and no javascript.

For improvements:

  1. Unit Testing
  2. Use Javascript Front End (i.e. ajax, jquery, react)
  3. Add Login/Logout, Product Management, Customer Management
  4. Add Checkout
  5. Add Logging

To run:

In Eclipse/STS: run as Spring Boot In mvn console: mvn spring-boot:run

Check in browser:

http://localhost:9070/basket/index

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.