Skip to content

How do I use CouchDB to store my Sails.js Session?

Notifications You must be signed in to change notification settings

sails101/couchdb-session

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How do I use CouchDB to store my Sails.js Sessions?

Sails 101: CouchDB Sessions for Sails.js, or "How do I use the CouchDB ORM for Sails.js?"

PreRequisites

  • Install CouchDB

Set up and Configure

  • Create a new Sails app with sails new path_to_app
  • Install dependencies
  • npm install --save connect-couchdb
  • npm install --save url
  • Edit "config/connections.js" with your CouchDB URL

Optionally: You can specify your CouchDB connection paramters in Environment Variables:

  • COUCHDB_URL: URL to CouchDB, does not read user/pass, default: http://localhost:5984
  • COUCHDB_USERNAME: CouchDB Username, default: 'admin',
  • COUCHDB_PASSWORD: CouchDB Password, default: 'admin'

About

How do I use CouchDB to store my Sails.js Session?

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published