Code Monkey home page Code Monkey logo

r_boiler's Introduction

Readme

Boilerplate rails 5.1.6.2 api > update in gemfile as needed

Easy boilerplate for rails api application with devise, jwt, and Users table seeds.

Gems:

  • devise
  • devise_token_auth
  • mysql2
  • awesome print for printing awesomely
  • rack-cors

Setup:

  • Clone repo
  • Bundle install
  • Rename using rename gem: rails g rename:into New-Name
  • Create DB: rake db:create
  • Load schema: rake db:shema:load
  • Adjust Users table to include necessary devise fields and migrate- see devise instructions
  • Adjust users model to reflect necessary devise fields
  • update secret in devise config file: rake secret
  • Update seeds.rb to fit your seeding needs
  • Seed the DB: rake db:seed
  • Remove git remote origin: git remote rm origin

Use mailcatcher for catching mail in dev.

  • gem install mailcatcher
  • mailcatcher to start it up

Routes

        new_user_session GET    /auth/sign_in(.:format)        devise_token_auth/sessions#new
            user_session POST   /auth/sign_in(.:format)        devise_token_auth/sessions#create
    destroy_user_session DELETE /auth/sign_out(.:format)       devise_token_auth/sessions#destroy
       new_user_password GET    /auth/password/new(.:format)   devise_token_auth/passwords#new
      edit_user_password GET    /auth/password/edit(.:format)  devise_token_auth/passwords#edit
           user_password PATCH  /auth/password(.:format)       devise_token_auth/passwords#update
                         PUT    /auth/password(.:format)       devise_token_auth/passwords#update
                         POST   /auth/password(.:format)       devise_token_auth/passwords#create
cancel_user_registration GET    /auth/cancel(.:format)         overrides/registrations#cancel
   new_user_registration GET    /auth/sign_up(.:format)        overrides/registrations#new
  edit_user_registration GET    /auth/edit(.:format)           overrides/registrations#edit
       user_registration PATCH  /auth(.:format)                overrides/registrations#update
                         PUT    /auth(.:format)                overrides/registrations#update
                         DELETE /auth(.:format)                overrides/registrations#destroy
                         POST   /auth(.:format)                overrides/registrations#create
     auth_validate_token GET    /auth/validate_token(.:format) devise_token_auth/token_validations#validate_token

r_boiler's People

Contributors

xfinger avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.