- Platform built on Chrome's JavaScript runtime, for building fast, scalable network applications
- Nodejs uses event driven, non-blocking I/O
NOTE
- created by Ryan Dahl, introduced in 2009
- Ryan Dahl's First Presentation on Node
// FAVORITE BOT==================== | |
// find a random tweet and 'favorite' it | |
var favoriteTweet = function(){ | |
var params = { | |
q: '#nodejs, #Nodejs', // REQUIRED | |
result_type: 'recent', | |
lang: 'en' | |
} | |
// for more parametes, see: https://dev.twitter.com/rest/reference |
// RETWEET BOT ========================== | |
// find latest tweet according the query 'q' in params | |
var retweet = function() { | |
var params = { | |
q: '#nodejs, #Nodejs', // REQUIRED | |
result_type: 'recent', | |
lang: 'en' | |
} | |
// for more parametes, see: https://dev.twitter.com/rest/reference/get/search/tweets |
// Use Streams API for interacting with a USER ========== | |
// set up a user stream | |
var stream = Twitter.stream('user'); | |
// FOLLOW-Reply BOT =========================== | |
// when someone follows | |
stream.on('follow', followed); |
NOTE
const faker = require('faker') | |
const User = { | |
name: faker.name.findName(), | |
email: faker.internet.email(), | |
website: faker.internet.url(), | |
address: faker.address.streetAddress() + faker.address.city() + faker.address.country(), | |
bio: faker.lorem.sentences(), | |
image: faker.image.avatar() | |
} |
#Ionic Publish Android App
This is the process to publish an ionic android app.
Make sure you set/increment the version number in config.xml
ie 0.0.3
.
Make sure the android platform has been added
/// error handlers | |
// development error handler | |
// will print stacktrace | |
if (app.get('env') === 'development') { | |
app.use(function(err, req, res, next) { | |
res.send('error', { | |
message: err.message, | |
error: err | |
}); | |
}); } |
{ | |
"extends": "airbnb", | |
"parser": "babel-eslint", | |
"env": { | |
"node": true, | |
"browser": true, | |
"es6": true | |
}, | |
"plugins": ["react"], | |
"rules": { |
npm i --save redux react-redux redux-thunk redux-promise && npm i --save-dev remote-redux-devtools remotedev-rn-debugger remote-redux-devtools redux-logger |