Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nejdetkadir/ask-me-anything
It is a clone application of ask.fm, created with Ruby on Rails
https://github.com/nejdetkadir/ask-me-anything
ask-me-anything askfm database omniauth rails rails-clone ruby
Last synced: 9 days ago
JSON representation
It is a clone application of ask.fm, created with Ruby on Rails
- Host: GitHub
- URL: https://github.com/nejdetkadir/ask-me-anything
- Owner: nejdetkadir
- License: gpl-3.0
- Created: 2021-04-22T14:44:28.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-04-26T22:31:00.000Z (over 3 years ago)
- Last Synced: 2024-12-06T03:06:27.093Z (22 days ago)
- Topics: ask-me-anything, askfm, database, omniauth, rails, rails-clone, ruby
- Language: Ruby
- Homepage: https://rails-ask-me-anything.herokuapp.com
- Size: 948 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ask me anything
It is a clone application of [ask.fm](https://ask.fm/), created with Ruby on Rails.* Ruby version
```
ruby 3.0.0
```* Rails version
```
Rails 6.1.3.1
```# Installation
## Prerequisites
- [Ruby](https://rvm.io/)
- [NodeJS (>=10.x)](https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions)
- ImageMagick `sudo apt-get install imagemagick libmagickcore-dev libmagickwand-dev`
- [Yarn](https://yarnpkg.com/lang/en/docs/install/#debian-stable)
- [PostgreSQL](https://www.postgresql.org/download/)## Installation
- Install GEM dependencies:
```bash
bundle install
```- Install asset dependencies:
```bash
yarn install
```- Create database, migrate tables and run the seed data:
```bash
rails db:create
rails db:migrate
rails db:seed
```- If you are setting up again, when you already have previous databases:
```bash
rails db:reset
```
- For dropping database
```bash
rails db:drop
```- Create environment variables for omniauth providers, Create a file named "config/application.yml" and fill its contents as follows
```yml
OA_GOOGLE_CLIENT_ID: 'XXX'
OA_GOOGLE_SECRET_KEY: 'XXX'
OA_GITHUB_CLIENT_ID: 'XXX'
OA_GITHUB_SECRET_KEY: 'XXX'
```