Giter VIP home page Giter VIP logo

flight_search_interface_ruby_backend's Introduction

A Flight Search backend test application

Requirements

Ensure you have a Ruby interpreter installed. (Developed and tested with Ruby versions 2.3.4 and 2.4.1)

Rubygems and bundler gem installed.

Installing the application

The quick automated way cloning from GitHub

Ensure you start a shell in a user accessible folder.

Run the start scriipt:

$ ./start.sh

The application will be cloned, installed and started with server listening on localhost:3000

Manual install and running of the application

Check to see whether RubyGems is installed:

$ gem --version
2.6.10

If it is not installed, follow the instructions on Rubygems download page.

Then, check if bundler gem is installed:

$ gem list bundler

*** LOCAL GEMS ***

bundler (1.15.1, 1.14.6, 1.14.5, 1.14.3, 1.13.7)

Install bundler, if it is missing:

$ gem install bundler

Clone the git repository into a user accessible folder:

$ git clone https://github.com/texpert/flight_search.git

Navigate to application's root folder:

$ cd flight_search

Install application's bundle:

$ bundle install

Running the application

Start the server:

$ puma -C config/puma.rb

After the server start, the backend could be accessed sending HTTP requests to http://localhost:3000

Sample queries:

/airlines

$ curl "http://localhost:3000/airlines"

/airports

$ curl "http://localhost:3000/airports?q=Melbourne"

/search

curl "http://localhost:3000/search?from=Melbourne&to=Sydney&date=2018-09-02"

flight_search_interface_ruby_backend's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar texpert avatar

Stargazers

 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.