/rails_devise_article

Repository created to save the exercise from article create a Ruby on Rails application with authentication on devise and deployed to heroku

Primary LanguageRuby

How to use Ruby on Rails with Omniauth

Project created to savethe steps from the tutorial Medium Tutorial Link.

Built With Ruby , Ruby on Rails

Tools used to build Aplication:

  • Ruby
  • Ruby on Rails
  • Omniauth

PROTOCOLS

  • HTTP

Getting Started

This repository save one project from TheOdinPage from Microverse Ruby on Rails course to learn how to manage the relationships on Active record using SQLlite Database and Ruby on Rails framework using the rails console to display and check the information.

Language Requirements

Ruby 2.6.3
Rails 5.2.0

GEMS

  • Rest-client
  • Bcrypt
  • Omniauth

Setup

To use this project you will need to download this repository and put in on your computer. after you will need to install webpack and npm to run correctlly this project.

Installation

Clone or download the repository to your local machine and after open your terminal on the repository folder and run :

bundle install

rails db:create

rails db:migrate

rails db:seed

Database Requirements

The project runs on PSQL. For running this application you must have a default PSQL role WITH LOGIN CREATEDB

For altering or creating a PSQL role run the following commands in postgres console

  For Creating a User:
  postgres=# CREATE ROLE role_name WITH LOGIN CREATEDB;

  For Altering Existing User
  postgres=# ALTER ROLE "role_name" WITH LOGIN CREATEDB;

Deployment

Run:

rails server

enter to your:   http://localhost:3000/

Rspec tests

To run rspec at terminal:

  rspec

Author

👤 Cristian Ines Hernandez A. - MephistoDevelop

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

📝 License

This project is MIT licensed.