Giter VIP home page Giter VIP logo

api-ref-app-atm-locations's Introduction

ATM Locations Reference Implementation

This repository showcases a reference implementation for ATM Locations using APIs from Mastercard Developers.

Try the demo.

Note: The demo uses live ATM locations data and therefore it is restricted to New York, NY 10011, United States.

Frameworks / Libraries used

Requirements

  • Java 7 and above
  • Set up the JAVA_HOME environment variable to match the location of your Java installation.

Setup

  1. Create an account at Mastercard Developers.
  2. Create a new project and add Locations API to your project. A .p12 file is downloaded automatically. Note: On Safari, the file name will be Unknown. Rename it to a .p12 extension.
  3. Copy the downloaded .p12 file to src/main/resources.
  4. Open src/main/resources/mastercard-api.properties and configure:
  • mastercard.api.debug - true if you need console logging, otherwise false.
  • mastercard.api.p12.path - Path to keystore (.p12). Uses Spring's resource strings.
  • mastercard.api.consumer.key - Consumer key. Copy this from "My Keys" on your project page
  • mastercard.api.key.alias - Key alias. Default key alias for sandbox is keyalias.
  • mastercard.api.keystore.password - Keystore password. Default keystore password for sandbox project is keystorepassword.
  • mastercard.api.sandbox - true if you are using sandbox environment, otherwise false.
  1. Get a Google Maps API key at Google Maps APIs.
  2. Open src/main/resources/google-maps.properties and configure:
  • google.maps.api.key - This value is automatically applied to src/main/frontend/index.html during the maven build process.

Build and Run

Windows: mvnw.cmd clean tomcat7:run-war

Linux / Mac: ./mvnw clean tomcat7:run-war

Open http://localhost:9090/ref-impl-atm-locations/.

Deploying to your own server

Windows: mvnw.cmd clean package

Linux / Mac: ./mvnw clean package

Deploy ref-impl-atm-locations.war in target/ directory to your container.

api-ref-app-atm-locations's People

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.