Airport Gap is a RESTful API to help you improve your API automation testing skills. It provides access to a database of airports, calculate distances between airports, and allows you to save your favorite airports.
You can create a free Airport Gap account at https://airportgap.dev-tester.com/.
Airport Gap is provided by Dev Tester - articles and tips to help you improve your test automation skills as a developer.
QuickStart: Setting up and running the application locally
Airport Gap is a Rails 6.0 application. You need the following dependencies installed to run the application:
- Ruby (current version: 2.6.5)
- Bundler (current version: 2.0.2)
- Yarn (current stable version)
- PostgreSQL (version 10.0 or greater)
Once the dependencies are installed, run the
bin/setup script to set up the application. The script will perform the following steps automatically:
- Install Ruby dependencies (
- Set up the database with seed data (
When everything is installed, run the Rails server locally with
rails s. The application will be accessible at http://localhost:3000/.
The Airport Gap application has a suite of automated tests to help during development.
Unit tests are set up with RSpec. To run the tests, set up the application's Ruby dependencies (
bundle install) and a test database, and run
AIRPORT_GAP_API_URL: The URL of the API endpoints. If you're running the application locally, the URL is
AIRPORT_GAP_EMAIL: The email address for a valid Airport Gap account in the application.
AIRPORT_GAP_PASSWORD: The password for the Airport Gap account in the application.