Project to create a prototype for a reboot of the BeLL apps using Angular & CouchDB.
First, make sure you have CouchDB 2.0 and NodeJS installed.
Once CouchDB is installed, run the curl
commands found at the bottom of this page to set up system databases. Then go into its dashboard at http://127.0.0.1:5984/_utils
and enable CORS by clicking Configuration -> CORS, click the Enable CORS button and add http://localhost:3000
and/or http://127.0.0.1:3000
to the list.
curl -X PUT http://127.0.0.1:5984/_users
curl -X PUT http://127.0.0.1:5984/_replicator
curl -X PUT http://127.0.0.1:5984/_global_changes
Then clone this repo and run npm install
to install all dependencies. There are two scripts of use for the command line, as well:
npm test
Will run unit tests
npm run watch
Will build the app, run tslint on all files, and start up a node server at localhost:3000
. It will also watch for changes to all files in src
and rebuild on changes.
Currently project only includes a login/create user page with username & password fields.
- Create vagrant file for quick setup of dependencies, then create docker file
- Incorporate SSL so site runs on HTTPS
- Add Service Workers & PouchDB (see this repo) for offline support
- Add e2e tests with Protractor or CodeceptJS
- Add user management component