A sample single page app using SuperLogin, AngularJS, and PouchDB
Switch branches/tags
Nothing to show
Clone or download

README.md

SuperLogin Demo

Live Demo

A sample single-page application built with SuperLogin, PouchDB and AngularJS, along with Angular Material.

For issues and feature requests visit the issue tracker.

Requirements

  • NodeJS
  • CouchDB
  • Redis

How to use

  1. npm install
  2. bower install
  3. (Optional) follow the instructions in env.example.sh to configure your access credentials
  4. Ensure Redis and CouchDB are running
  5. npm start

How to deploy to Heroku & Cloudant

  • Register with a DBaaS (Database as a Service) like Cloudant.
  • Enable CORS (cross origin Resource Sharing): Under Account go to CORS and enable this for All domains
  • Register with a PaaS (Platform as a service) like Heroku.
  • Create app & deploy superlogin-demo, see: Heroku: Getting started with Node.js
  • Enable the Redis addon.
  • In the app's settings, set the Config Variables, see: env.example.sh.
    • DB_HOST: yourcloudantusername.cloudant.com
    • DB_USER: yourcloudantusername
    • DB_PASS: yourcloudantpassword

Demonstrates These Projects

SuperLogin

Powerful authentication for APIs and single page apps using the CouchDB ecosystem which supports a variety of providers.

NG-SuperLogin

Angular bindings for the SuperLogin project.

NG-Pouch-Mirror

Simple 3-way sync between a remote database, memory, and disk using PouchDB.