/Ruby_flight-

Primary LanguageRubyMIT LicenseMIT

A flight reviews app built with Ruby on Rails and React.js

DEMO

Coding

HOME PAGE

OpenFlights Home

REVIEW PAGE

OpenFlights Show


Running it locally

  • run bundle exec rails db:prepare
  • run npm install or yarn install
  • run bundle exec rails s
  • in another tab run ./bin/webpack-dev-server (optional)
  • in another tab run sidekiq (optional, but necessary for things like password reset emails)
  • navigate to http://localhost:3000

Environment Variables

If you want functionality like password reset emails to work locally, you'll need to set the following environment variables in config/application.yml with your own unique values:

ROOT_URL: http://localhost:3000
SENDGRID_API_KEY: xxxxxxxxxxxxxx
SENDGRID_USERNAME: xxxxxxxxxxxxxx
SENDGRID_PASSWORD: xxxxxxxxxxxxxx
DEFAULT_FROM_EMAIL: you@example.com