Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View mbbertino's full-sized avatar

Matt Bertino mbbertino

View GitHub Profile
// Current structure
constructor(props) {
super(props)
this.state = {
isValidating: false,
processing: false,
// ... other state setting from custom functions
// ... other state setting from props
}
@mbbertino
mbbertino / CheckoutContainer.es6.jsx
Created July 2, 2018 15:50
React default state setup
// Current structure
constructor(props) {
super(props)
this.state = {
isValidating: false,
processing: false,
// ... other state setting from custom functions
// ... other state setting from props
}
@mbbertino
mbbertino / 1intro.md
Last active August 29, 2015 14:06
Ember, Ember ClI, Emberfire, Firbase, Simple Login Example

#Hello!

##I wanted to throw out an example of using Ember, Ember CLI, Emberfire, Firebase, Firebase Simple Login to set up authenticiation, and redirecting.

A couple of setup tasks:

  1. Assuming you already have Ember CLI and have basic knowledge of Ember and Firebase
  2. npm install --save emberfire
  3. bower install --save emberfire
  4. bower install --save-dev firebase-simple-login
    And add "app.import('vendor/firebase-simple-login/firebase-simple-login.js'); " to your Brocfile.js
@mbbertino
mbbertino / gist:5ac801c22fa9f3748a49
Last active August 29, 2015 14:05
Ember CLI, EmberFire, Firebase Simple Login Email/Password Protected Routes
// Router
import Ember from 'ember';
var Router = Ember.Router.extend({
location: ClientENV.locationType
});
Router.map(function() {
this.resource('login');
this.resource('secretRouteToBeProtected');