superlogin-demo
superlogin-demo copied to clipboard
A sample single page app using SuperLogin, AngularJS, and PouchDB
SuperLogin 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
-
npm install
-
bower install
- (Optional) follow the instructions in
env.example.sh
to configure your access credentials - Ensure Redis and CouchDB are running
-
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.