Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 1.92 KB

README.md

File metadata and controls

29 lines (24 loc) · 1.92 KB

API for payment-spring-demo

This site is the API portion of a small project built to showcase some web development skills. This API is simple and provides authentication functionality, and well as the API keys for a PaymentSpring account (see Getting Started for instructions on setting up a PaymentSpring account). The code for the front end is found here.

The live demo site can be accessed at: https://payment-spring-demo.herokuapp.com.

Getting Started

To run the application locally:

  • Install PostgreSQL from PostgreSQL Official Page
  • If you don't have one already, create a PaymentSpring account
  • Follow the instructions below (taken from the PaymentSpring documentation) to obtain your PaymentSpring API keys:
    • Log in to https://dashboard.paymentspring.com.
    • Click Account in the navigation menu on the left.
    • You’ll see your current API keys at the bottom of the page. We only allow these keys to show once for security reasons.
    • Click Generate New Keys. You can choose to expire the current keys now or in 1 hour.
    • You will see the new set of keys. Save them now, for they will be redacted the next time you visit this page. You can always generate news keys.
  • Create the following environment variables:
  • Run the following commands to set up the environment and run the program:
rake db:setup
rails s

Demo API

This code is deployed to https://whispering-cove-68110.herokuapp.com