GithubHelp home page GithubHelp logo

jhuckabee / backbone_devise Goto Github PK

View Code? Open in Web Editor NEW
90.0 13.0 18.0 658 KB

An example Rails app that uses a Backbone.js UI for user signup, authentication, and password retrieval.

Ruby 80.68% JavaScript 19.32%

backbone_devise's Introduction

Backbone.js Authentication UI with Ruby on Rails and Devise

Backbone Devise Screenshot

This is an example application that implements a user regisration, authentication, and password retrieval user interface using Backbone.js, Ruby on Rails, and Devise.

The front end also takes advantage of a few additional Backbone support libraries which include:

Demo Application

A demo application can be found at http://backbonedevise.herokuapp.com

Local Installation

  1. Clone the repository

git clone git://github.com/jhuckabee/backbone_devise.git

  1. Configure your database in config/database.yml. The current config assumes a custom local PostgreSQL configuration.

    vi config/database.yml

  2. Migrate the database

    rake db:migrate

  3. Start your webserver

rails server

Tests

Integration tests have been written using Capybara and Selenium

Run the tests using

rake test

backbone_devise's People

Contributors

jhuckabee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

backbone_devise's Issues

Using :get to sign_out may create insecurity

I ran into an issue described here

http://stackoverflow.com/questions/9362910/rails-warning-cant-verify-csrf-token-authenticity-for-json-devise-requests

Sign in, then out, then back in fails because the csrf token has expired (or something). I noticed you solved this by signing out using :get in your devise.rb initializer. Which is described as being a bad idea here:

http://stackoverflow.com/questions/941594/understand-rails-authenticity-token

I was wondering if you have found a more secure method, as suggested in the SO question?
Overriding and passing a new token each request seems like the best idea. Though, I am still unsure the best way to go about implementing it.

P.S.
Cheers, for this project. It is the best example of how to interact with Devise over json that I could find.

Login, Signup etc fails when I clean out the /public/assets folder

Hi Josh,

Thanks for this, I am reasonaby comfortable with Backbone now, just moving onto Marionette and this seems to be a great project to pick apart to learn it.

Just curious as to why when I delete out the javascript and css from /public/assets, all the login functionality stops working.

Work when it is in there, fails when it is gone.

I am trying various things, such as including all the required js files from a ./utils folder in /assets/javascripts but no joy.

I can't see how some of the files such as ( I changed to coffeescript)

= require underscore

= require underscore.string

= require backbone

= require backbone.sync.rails

= require backbone.modelbinder

= require backbone.marionette

are being included.

There seems to be no gems that load these into the asset pipeline.

I am missing something obvious I think.

Any thoughts/suggestions?

Cheers,

Luke

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.