Giter VIP home page Giter VIP logo

flight-booker's Introduction

FlightBooker

This project is a PROTOTYPE of flight booker app. This app help the users achieve the following features:

  1. Fliter flights by desired dates / airports and price
  2. Book a flight and maintain his previous booking histroy
  3. Pay Online

Built With

Prerequisites

  • ruby '2.7.2
  • rails 6.1.4

Installation

STEP 1: Install dependencies

If you are on a Mac, first install Homebrew.

Install homebrew dependencies first to avoid accidentally picking up ones bundled with Mac OS, which may not be compatible.

brew install postgresql
brew link postgresql
STEP 2: Clone the repository
git clone https://github.com/Aftab-Akram/flight-booker

Alternatively, SourceTree can be used instead of command line git.

STEP 3: Install rbenv
STEP 4: Install ruby through rbenv
cd flight-booker
rbenv install
  • Alternatively, if you use rvm: rvm use $(cat .ruby-version) --install
STEP 4: Install bundler
 bundle install 
STEP 5: Initialize Postgres
# Initialize your local postgres database (if a new install)
initdb -D /usr/local/var/postgres

# Start the postgres server process
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start

# To stop postgres (when needed)
# pg_ctl -D /usr/local/var/postgres stop
STEP 6: Set up flight-booker_develop and test databases.
bin/rake db:setup
STEP 7: Get config/master.key

Create the development credential key file under config/master.key

echo 'MASTER KEY GOES HERE' > config/master.key
STEP 8: Start Servers

Run rails s and visit http://localhost:3000

  • The client Webpack development server should now be running on port 3000
  • Browser hot module reloading is enabled for the client app
STEP 9: Sign Up / Log In

A user record will be created in your database when you first sign up.

http://localhost:3000
[Sign Up]

If there's an unexpected error, you may not be able to log in or out. Visit this address for a fresh start.

http://localhost:3000/logout

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Contact

Aftab Akram - LinkedIn - [email protected]

flight-booker's People

Contributors

aftab-akram 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.