Database
Date 25/11/2014
Some projects need to use a database due to the need for some persistent data, such as user account information, settings and other similar things that should be kept same between different sessions.
Node.js has several modules that provide bindings to native database libraries, and some written completely in JavaScript.
npm registry itself uses CouchDB, which will be queried in the example below.
Install dependencies:
Run via command line, by searching the default package name defined in line 8:
Should provide an output similar to:
Running with a package name defined via command line:
Outputs:
Links related to the lecture subject
Last updated
Was this helpful?