https://github.com/alextanhongpin/rails-devise-auth
Testing strategy for Rails devise and devise_token_auth
https://github.com/alextanhongpin/rails-devise-auth
rails ruby
Last synced: 3 months ago
JSON representation
Testing strategy for Rails devise and devise_token_auth
- Host: GitHub
- URL: https://github.com/alextanhongpin/rails-devise-auth
- Owner: alextanhongpin
- Created: 2019-09-11T06:55:09.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T14:52:17.000Z (over 3 years ago)
- Last Synced: 2025-01-29T21:52:07.383Z (over 1 year ago)
- Topics: rails, ruby
- Language: Ruby
- Size: 88.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
```bash
$ rails new testapi --api
$ rails db:migrate
$ bin/rake db:setup
# Setup rspec. See the Gemfile.
$ bin/rails g rspec:install
# Scaffold.
$ bin/rails g scaffold user name email
$ rails db:migrate
# Authentication.
gem 'devise'
bundle install
rails g devise:install
rails g devise user
rails db:migrate
# To add to existing user.
rails g devise User
rake db:purge db:migrate db:seed
# To install straight to gem.
$ bundle add faker
# Seems like devise_token_auth and devise is different.
$ rails generate devise_token_auth:install User auth
$ bundle add rack-cors
```
This README would normally document whatever steps are necessary to get the
application up and running.
Things you may want to cover:
* Ruby version
* System dependencies
* Configuration
* Database creation
* Database initialization
* How to run the test suite
* Services (job queues, cache servers, search engines, etc.)
* Deployment instructions
* ...