Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Latest commit

 

History

History
23 lines (16 loc) · 1.49 KB

README.md

File metadata and controls

23 lines (16 loc) · 1.49 KB

EasyPost Example For Buying Shipments

The EasyPost API provides an easy way to programatically create shipments and postage labels. This project provides an example for buying shipments using EasyPost API.

The application provides a minimal web application that can be hosted on any computer, and enables one to create a sample web application to buy shipments, create labels, and verify addresses using the EasyPost API.

Requirements

  1. A Windows or Mac computer running Ruby Bundler
  2. An EasyPost account

Running the Application

  1. Check out this repo, git clone https://github.com/EasyPost/example-ui-for-buying-shipments.git
  2. Move into the application's directory, cd example-ui-for-buying-shipments
  3. Fill in the .env file
    1. EAYSPOST_API_KEY one of your EasyPost Api Keys
    2. FROM_ADDRESS_ID is the id of an Address object that you are shipping from.
  4. Install the dependencies, bundle install --path vendor/bundle
  5. Run the server, bundle exec rackup
  6. The application should be up and running at http://localhost:9292/

If you aren't seeing any labels, make sure you have bought some postage on EasyPost! You can walk through the EasyPost Getting Started Guide using your test API Key.