couchdb-node-passport-login

This is a user login and registration app using Node.js, Express, Passport, CouchDB, EJS and some other packages.

Usage no npm install needed!

<script type="module">
  import couchdbNodePassportLogin from 'https://cdn.skypack.dev/couchdb-node-passport-login';
</script>

README

CouchDB-Node-Passport-Login

This is a user login and registration app using Node.js, Express, Passport, CouchDB, EJS and some other packages.

Version: 0.3.2

npm

https://www.npmjs.com/package/couchdb-node-passport-login

Usage

DB Install:

  1. You will have to install couchDB locally (dbPort: 5984)
  2. Credential for CouchDB should be user:admin pass:admin
  3. Create db name: users (Obviously Credential and dbName dbPort etc.. Can be change in the code) 
$ npm install
$ npm start
# Or run with Nodemon
$ npm run dev

# Visit http://localhost:4000

CouchDB

db name value is in "models/User.js" the URI and port are in "config/keys.js"

Insperations

the code was inspeired from other mangoDB login models