Git Product home page Git Product logo

java-play-products's Introduction

java-play-products

Fun with Java Play Framework

Product Checkout App

Demonstrates usage of Java Play Framework with a simplified product checkout page. Submits a payment to Stripe and retrieves a payment token

Products Page List View, url: /

Alt text

Products Page Grid View, url: /

Alt text

Payment Selection, url: /payments/payment_select/{product_id}

Alt text

Order Created Page, url: /orderitems/create_order_item

Alt text

View All Orders Page, url: /order_items/list

Alt text

Stripe

  1. Logic for Stripe payments is located in Stripe provided .js file, located in this repo at /public/javascripts/stripe.js
  2. Here a Stripe token is provided to a Stripe client and then executes call to Stripe API

Requirements

  1. You must have a local instance of MySQL running with a database named "products"
  2. A user with username "root" and password "root", or change the db config in application.conf
  3. Enable legacy authentication on your MySQL server instance

To Run

  1. From one directiory above this folder apply evolutions: "play evolutions:apply java-play-products"
  • Note that you must first run these database scripts before the application will work*
  1. Run server: "java run java-play-products"
  2. Browse to localhost:9000

Other requirements notes:

  1. Make sure you have Java 1.8 installed
  2. Make sure you have mysql-connector.jar in your Java Runtime Environment
  3. Your mysql server should be version 8.0 or above

java-play-products's People

Contributors

humanalgorithm 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.