- Read records from database.
- For each record issue HTTP GET for a webservice and recieve a response.
- Store resonses to corresponding document back.
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
ERROR in ./source/components/SignUpForm/index.js | |
Module build failed: SyntaxError: /Users/alexanderbeletsky/Development/Projects/blogfoster/app/source/components/SignUpForm/index.js: A semicolon is required after a class property (79:3) | |
77 | onSignUp: PropTypes.func, | |
78 | onCleanupErrors: PropTypes.func | |
> 79 | } | |
| ^ | |
80 | | |
81 | componentWillMount() { |
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
// 1. some-component.js | |
dispatch(makeSomeMagic({ focus: 'pokus' })); | |
// 2. action-creators.js | |
export makeSomeMagic = (data) => { | |
return { type: constants.MAKE_SOME_MAGIC, payload: data }; | |
} |
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
export function signUpErrors(errors) { | |
return { type: 'SIGNUP_ERRORS', errors }; | |
} | |
export function signUpClearError(name) { | |
return { type: 'SIGNUP_CLEAR_ERROR', name }; | |
} | |
export function createAccount(account, accountCreated) { | |
return (dispatch) => { |
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
undefined:3 | |
return function bound dispatch(req, res, next) { | |
^^^^^^^^ | |
SyntaxError: Unexpected identifier | |
at Function (native) | |
at wrapHandle (/Users/alexanderbeletsky/Development/Projects/mylorry/health-point/node_modules/newrelic/lib/instrumentation/express.js:277:19) | |
at Function.cls_wrapMiddlewareStack [as use] (/Users/alexanderbeletsky/Development/Projects/mylorry/health-point/node_modules/newrelic/lib/instrumentation/express.js:319:24) | |
at EventEmitter.<anonymous> (/Users/alexanderbeletsky/Development/Projects/mylorry/health-point/node_modules/express/lib/application.js:219:21) | |
at Array.forEach (native) |
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 express = require('express'); | |
var data = require('./source/data'); | |
var app = express(); | |
var port = process.env.PORT || 3036; | |
data.boot(env, function (err) { | |
if (err) { | |
app.emit('error', 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
var express = require('express'); | |
var bodyParser = require('body-parser'); | |
var methodOverride = require('method-override'); | |
var morgan = require('morgan'); | |
var cors = require('cors'); | |
var config = require('./config'); | |
var middleware = require('./source/middleware'); | |
var logger = require('./source/utils/logger'); | |
var auth = require('./source/utils/auth'); |
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
function auth() { | |
return function (req, res, next) { | |
var token = headers() || query(); | |
if (!token) { | |
return next({message: 'access token missing', status: 401}); | |
} | |
req.mongo.accounts.findOne({accessToken: token}, function (err, account) { | |
if (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
var express = require('express'); | |
var mysql = require('mysql'); | |
var bodyParser = require('body-parser'); | |
var methodOverride = require('method-override'); | |
var morgan = require('morgan'); | |
var cors = require('cors'); | |
var health = require('express-ping'); | |
var connection = require('express-myconnection'); | |
var json2csv = require('nice-json2csv'); |
Tested on react-grunt-es6 and react-gulp-es6.
in react2/ on master
› grunt
Running "browserify:dev" (browserify) task
Done, without errors.