CHAPTER 2. Using Express.js to Create Node.js Web Apps

Express.js Scaffolding

  Project: express-styl

$ express -c styl express-styl

CHAPTER 5. Persistence with MongoDB and Mongoskin

MongoDB Console in Detail

- show dbs
- use db_name
- show collections
- db.collection_name.find(query)
- db.collection_name.findOne(query)
- db.collection_name.insert(document)
- db.collection_name.save(document)
- db.collection_name.update(query,{$set: data})
- db.collection_name.remove(query)
- printjson(document)

Minimalistic Native MongoDB Driver for Node.js Example

  Project: pi-notes

Table 1. Native MongoDB driver documentation

documentation

http://mongodb.github.io/node-mongodb-native

api-doc

http://mongodb.github.io/node-mongodb-native/3.6/api

CHAPTER 11. Deploying Node.js Apps

Keeping Node.js Apps Alive with forever, Upstart, and init.d