https://github.com/nejdetkadir/google-github-omniauth-starter
A sample template showcases how to use omniauth (google & github) on rails 6.x
https://github.com/nejdetkadir/google-github-omniauth-starter
omniauth rails6
Last synced: 5 months ago
JSON representation
A sample template showcases how to use omniauth (google & github) on rails 6.x
- Host: GitHub
- URL: https://github.com/nejdetkadir/google-github-omniauth-starter
- Owner: nejdetkadir
- License: gpl-3.0
- Created: 2021-04-21T05:34:04.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-21T06:43:11.000Z (about 5 years ago)
- Last Synced: 2025-04-07T09:43:05.204Z (about 1 year ago)
- Topics: omniauth, rails6
- Language: Ruby
- Homepage:
- Size: 188 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# google github omniauth starter
* 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)
- [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
rails webpacker: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'
```