Skip to content

foxystyle/flightmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local setup

  1. Make sure you have Ruby (~2.2.1) on your machine
$ ruby -v
  1. Install Rails on your machine, should be ~= 4.2.2
$ gem install rails
$ rails -v
  1. Clone repository into workspace directory
$ cd path/to/dir
$ git clone https://github.com/kunokdev/flightmap
  1. Install dependencies, migrate database and seed it with data
$ npm install -g bower
$ bundle install
$ rake -T bower
$ rake bower:install
$ rake db:migrate
$ rake db:seed
  1. Run local server and go to localhost:3000 in your browser
$ rails s

Production preview

Production preveiw on heroku - https://flightmap.herokuapp.com/

Note:: This preview might not always work properly due to heroku account service limitations.

Done

  • Airport model (app/models/airport.rb)
  • Airport csv reader (db/seeds/airports.rb)
  • user provided headers
  • "tt" separation REGEX
  • Airport database migration (db/migrate/~)
  • Airport database seed
  • Tickets model (app/models/ticket.rb)
  • Tickets csv reader (db/seeds/tickets.rb)
  • Tickets database migration (db/migrate/~)
  • Tickets database seed
  • Replace 0s with null for airport coordinates
  • Replace 1970-01-01 with null for ticket return dates
  • Replace \N with null for airport cities
  • Create UI for options
  • Departure location input linked to API from Rails
  • Departure location input suggests 20 items upon change
  • Favicon
  • Heroku production setup
  • Ticket data API
  • Currencies API and dropdown
  • Force limit for person count (1-100)
  • Dates API and dropdown
  • Range sliders connected with Angular
  • Display parameter data
  • Style new sliders
  • Display range slider params
  • Calculate params
  • Display matching data

Next to do

  • Data per request rather than loading whole API all at once
  • Map colors
  • Interactive SVG Map to display data
  • Responsive versions
  • Range slider values layout
  • Default value for all inputs
  • Null value
  • Current location detector
  • Currency exchange rate API

Notes

  • It would be good to separate data into multiple tables for better performance (e.g. table for each departure location)
  • Chrome departure location not working properly

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published