Skip to content

nejdetkadir/ask-me-anything

Repository files navigation

ask me anything

It is a clone application of ask.fm, created with Ruby on Rails.

  • Ruby version

    ruby 3.0.0
    
  • Rails version

    Rails 6.1.3.1
    

Installation

Prerequisites

Installation

  • Install GEM dependencies:

    bundle install
  • Install asset dependencies:

    yarn install
  • Create database, migrate tables and run the seed data:

    rails db:create
    rails db:migrate
    rails db:seed
  • If you are setting up again, when you already have previous databases:

    rails db:reset
  • For dropping database

    rails db:drop
  • Create environment variables for omniauth providers, Create a file named "config/application.yml" and fill its contents as follows

    OA_GOOGLE_CLIENT_ID: 'XXX'
    OA_GOOGLE_SECRET_KEY: 'XXX'
    OA_GITHUB_CLIENT_ID: 'XXX'
    OA_GITHUB_SECRET_KEY: 'XXX'