Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
db
 
 
lib
 
 
log
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Question Cove Travis build status Code Climate

A application to facilitate questions and answers written in Ruby on Rails.

REQUIRES MySQL >= 5.6

Development

bundle install
rake db:create
rake db:migrate
rails s

Emails

Go to http://localhost:3000/emails to view emails sent by the application is development mode

Authentication

This app uses Google OAuth to authenticate users. To set up, follow these steps:

  • Go to 'https://console.developers.google.com'
  • Select your project.
  • Go to Credentials, then select the "OAuth consent screen" tab on top, and provide an 'EMAIL ADDRESS' and a 'PRODUCT NAME'
  • Create credentials > OAuth client ID
  • Choose Web application
  • Enter <host>/auth/google/callback as a Authorized redirect URIs (http://localhost:3000/auth/google/callback for local development)
  • Enter the Client ID and secret in config/initializers/omniauth.rb
  • Add email domains to config.domain_whitelist in config/initializers/omniauth.rb
    • Allow all emails: Regexp.union(/.*/)
    • Multiple domains: Regexp.union(/@domain1.com/, /@domain2.com/)

Deployment

The application is setup to use Capistrano as a deployment method. Simply add the appropriate environment files to the directory config/deploy/. You can learn more about Capistrano by visiting the link.

About

An app to connect people with questions to the experts with answers.

Resources

License

Releases

No releases published

Packages

No packages published