This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
frankg@ubuntu:~/dev/test/activator$ node -v | |
v4.2.2 | |
frankg@ubuntu:~/dev/test/activator$ npm -v | |
2.14.7 | |
frankg@ubuntu:~/dev/test/activator$ | |
frankg@ubuntu:~/dev/test/activator$ npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node -v | |
v4.1.0 | |
npm -v | |
3.4.0 | |
npm ls | |
--------------------------------------------------------------- | |
cerebral@0.24.0 /Users/frankg/dev/code/test/eval-cerebral/cerebral | |
├─┬ babel-loader@5.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { PropTypes, Component } from 'react/addons'; | |
import { bindActionCreators } from 'redux'; | |
import { connect } from 'react-redux'; | |
import reactMixin from 'react-mixin'; | |
import {Link} from 'react-router'; | |
import * as actionCreators from '../actions'; | |
import { reduxForm } from 'redux-form'; | |
import { loginFields as fields } from '../constants'; | |
import { validateLoginForm as validate } from '../validation'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROBLEM: Failed propType | |
... | |
Warning: Failed propType: Required prop `counter` was not specified in `Home`. Check the render method of `RoutingContext`. | |
... | |
App.js | |
------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////// | |
linting errors: | |
////////////////// | |
/Users/frankg/dev/code/seeds/mobx-starter-2016/app/components/App.js | |
1:1 error Definition for rule 'no-duplicate-imports' was not found no-duplicate-imports | |
1:1 error Definition for rule 'no-unsafe-finally' was not found no-unsafe-finally | |
1:1 error Definition for rule 'no-useless-computed-key' was not found no-useless-computed-key | |
1:1 error Definition for rule 'no-useless-escape' was not found no-useless-escape | |
/Users/frankg/dev/code/seeds/mobx-starter-2016/app/components/Blocks.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// loopback-getting-started-intermediate process | |
// goto project directory | |
cd CoffeeShops | |
// generate model (table) | |
slc loopback:model // prompts... | |
Model name: Review | |
Data source: mongoDs (mongodb) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var async = require('async'); | |
module.exports = function(app) { | |
//data sources | |
var dsMongoDB = app.dataSources.dsMongoDB; | |
//create all models | |
async.parallel({ | |
reviewers: async.apply(createReviewers), | |
coffeeShops: async.apply(createCoffeeShops), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(Review) { | |
Review.beforeRemote('create', function(context, user, next) { | |
context.args.data.date = Date.now(); | |
context.args.data.publisherId = context.req.accessToken.userId; | |
next(); | |
}); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(app) { | |
app.dataSources.dsMongoDB.automigrate('CoffeeShop', function(err) { | |
if (err) throw err; | |
app.models.CoffeeShop.create([ | |
{name: 'Bel Cafe', city: 'Vancouver'}, | |
{name: 'Three Bees Coffee House', city: 'San Mateo'}, | |
{name: 'Caffe Artigiano', city: 'Vancouver'}, | |
], function(err, coffeeShops) { | |
if (err) throw err; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// loopback-getting-started abbreviated process | |
// install loopback | |
npm install -g strongloop | |
// generate app | |
slc loopback CoffeeShops | |
? What's the name of your application? CoffeeShops | |
? Enter name of the directory to contain the project: CoffeeShops |