Skip to content

EdwardReed/that_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#That API - Rails API + Devise

Notable Gems Used:

Rails-Api

Rails for API only applications - https://github.com/rails-api/rails-api

Devise

Flexible authentication solution for Rails with Warden. - https://github.com/plataformatec/devise

Multi Json

A generic swappable back-end for JSON handling. - https://github.com/intridea/multi_json

Jbuilder

Create JSON structures via a Builder-style DSL. - https://github.com/rails/jbuilder

Better Errors

Better error page for Rack apps. - https://github.com/charliesome/better_errors

Pry-Rails

An IRB alternative and runtime developer console. - https://github.com/pry/pry

DotEnv

Loads environment variables from .env. - https://github.com/bkeepers/dotenv

Database

PG

Pg is the Ruby interface to the PostgreSQL RDBMS - https://rubygems.org/gems/pg

#Get Started

##Bundle Gems

bundle install 

##Create a .env with

ORIGIN_URL='localhost'

Remember to add this Environment variable to production server for CORs support. The development server will use the .env file for environment variables.

###Create Database

rake db:create 

###Run "DeviseCreateUsers" migration

rake db:migrate 

###Start Rails Server

rails s 

Build Away!

                                   .''.
       .''.      .        *''*    :_\/_:     .
      :_\/_:   _\(/_  .:.*_\/_*   : /\ :  .'.:.'.
  .''.: /\ :    /)\   ':'* /\ *  : '..'.  -=:o:=-
 :_\/_:'.:::.  | ' *''*    * '.\'/.'_\(/_'.':'.'
 : /\ : :::::  =  *_\/_*     -= o =- /)\    '  *
  '..'  ':::' === * /\ *     .'/.\'.  ' ._____
      *        |   *..*         :       |.   |' .---"|
        *      |     _           .--'|  ||   | _|    |
        *      |  .-'|       __  |   |  |    ||      |
     .-----.   |  |' |  ||  |  | |   |  |    ||      |
 ___'       ' /"\ |  '-."".    '-'   '-.'    '`      |____
jgs~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  &                    ~-~-~-~-~-~-~-~-~-~   /|
 ejm97    )      ~-~-~-~-~-~-~-~  /|~       /_|\
        _-H-__  -~-~-~-~-~-~     /_|\    -~======-~
~-\XXXXXXXXXX/~     ~-~-~-~     /__|_\ ~-~-~-~
~-~-~-~-~-~    ~-~~-~-~-~-~    ========  ~-~-~-~

##Don't forget to have some Javascript Pudding with That Api.

###Open to pull requests!

About

Rails API + Devise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published