jklemon17 / flight-booker

Flight booker app for Microverse from The Odin Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

Flight Booker - Ruby on Rails application to practice user authentication and authorization

Getting started

  • System dependencies

Ruby version: 2.3.1 Rails version: 5.2.0 Bundler version: 1.16.1

To get started with the app, clone the repo and then install the needed gems:

$ bundle install --without production

Next, migrate the database:

$ rails db:migrate

You must first seed your database with the following command:

$ rails db:seed

NOTE: The seed file is initially set up to generate 36,500 flights (100 flights / day for the next 365 days). To have a higher rate of successfully finding a flight for all search possibilities requires modifying the seed file to include more flights per day. This however will increase the seeding time signficantly. For perspective, there are approxmiately 100,000 flights around the globe per day.

Finally run the app in a local server:

$ rails server

Open your browser at "localhost:3000".

To run the RSpec test suite, first run:

$ rails db:seed ENV=test

Then run:

$ rspec

Authors

About

Flight booker app for Microverse from The Odin Project


Languages

Language:Ruby 74.3%Language:HTML 20.4%Language:JavaScript 2.4%Language:CSS 2.1%Language:CoffeeScript 0.8%