Installing nodify persist - nodify/nodify-persist GitHub Wiki

Installing nodify-persist is not especially difficult, but there is one caveat: nodify-persist's dependency on an underlying database connection module is not reflected in it's package metadata. What does this mean? It means you have to explicitly install a mysql, sqlite or mongodb connection manager yourself. We do this so your system won't load unnecessary drivers.

Installing with npm

Don't worry, it's not a big deal. Just add one of these packages to your npm install command:

So if you want to use nodify-persist with MySQL, you would execute the following command:

npm install nodify-persist [email protected]

Or if you wanted to use nodify-persist with mongodb, you would use this command:

npm install nodify-persist sqlite3

Or, since it's possible to use multiple database technologies in the same app, this command would prepare you for using nodify-persist with both mongodb and mysql:

npm install nodify-persist [email protected] mongodb

Cloning with GIT

If you want to clone a copy of the repository, just use this command:

git clone git://github.com/nodify/nodify-persist.git

After making a local copy of the repository, you'll want to install one of the three database packages listed in the previous section.

Where to go from here

If you want to see a simple example, click over to the Simple Example page.

For a list of examples, see the Examples page.

We also have a Developers' Guide which describes features seen in the examples.