0.0.7 • Published 8 years ago

decentraleyes-static-angularjs v0.0.7

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

decentraleyes-static-AngularJS

Decentraleyes.net AngularJS Static Content service reference implementation

Architecture

Every service in Decentraleyes.net is shipped as a standalone module to allow SysOps the freedom to:

  1. Determine whether or not they use each module;
  2. Determine when/if they upgrade them; and
  3. Change or even entirely rewrite them from scratch.

Each service module implements an interface made of public methods and routes. If the public interface is maintained, Decentraleyes.net doesn't care what amount of actual work is performed within the service as long as it succeeds and generates a result expected by the user per the documented interface contract of the service.

For example, a SysOp might not want to use MongoDB or might even want to use a database they created. Such a user could create a new service and write the logic needed to use their custom database while providing service as expected through Decentraleyes.net including beacons, notifications and so on.

Building

grunt build will populate the dist directory with an optimized and minified build of this module's web content. The dist directory will be served by the module if NODE_ENV is "production".

Development

grunt serve in this module's root directory will start an interactive development session, open your default web browser and automatically refresh content in the browser as you make changes.

Yeoman can and should be used to create new routes, directives, views, scripts, etc. yo angular:route test-route will create the /test-route AngularJS route and populate it with a controller, test and view. Yeoman does more than that, but that's the quick-start.

Methods

The decentraleyes-users module offers publicly callable JavaScript methods used by code, not by HTTP requests.

load (express, mongoose, app)

Loads the service and configures it for use. The load method compiles the schema and model. Then, it attaches the service's routes to the host application's call chain.

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago