Users who have not created an account on Flyght can do the following:
Find flights by Origin, Destination and Date.
Specify number of passengers for travel
If any flights form that route exist, they can then select the flight for booking.
After specifying a valid email and booking, they will receive an email confirmation
They can view a booking by searching for its confirmation number
Sign up to become registered users
In addition to all features for unregistered users, registered users can also:
List all their past bookings
Edit a past booking
Cancel a past booking, if it has not already departed
To get started with this application locally, you'll need the following technologies:
- Ruby
- Git
- The ruby gem
bundler
Rspec
for testing
Clone the repository:
$ git clone https://github.com/andela-bkanyolo/flyght.git
Navigate into the directory:
$ cd flyght
Install dependencies
$ bundle install
Create, migrate and seed database
$ bundle exec rake db:setup
Start the server
$ rails server
Visit http://localhost:3000 to view the application on your browser.
Assuming you have setup the application as stated above, you can run the tests with
$ bundle exec rspec
- Fork this repository Fork Flyght on Github
- Create your feature branch (
git checkout -b ft-my-feature
) - Commit all your changes
- Push to the branch (
git push origin ft-my-feature
) - Create a new Pull Request
- The application relies on seed data for airports, airlines and flights, hence the data is static and not an actual reprentation of real life flight searching platforms.
- You can only have a maximum of 10 passengers per booking.
- The user cannot pay for the flight booking.
- Due to the above limitations, bookings are just for demonstration purposes and a confirmed booking isn't valid anywhere other than in the application.