PERSISTENCE_TYPE
- possible values [
mongodb
]
- possible values [
MONGODB_NETWORK_URL
- requires that the
PERSISTENCE_TYPE
environment variable above is set tomongodb
to have any effect - if not set, defaults to
localhost
- requires that the
SESSION_STORE
- possible values [
memory
,redis
]
- possible values [
REDIS_NETWORK_URL
- requires that the
SESSION_STORE
environment variable is set toredis
to have any effect - if not set, defaults to
localhost
- requires that the
METRICS_PORT
- if set, emits prometheus metrics on this port instead of the default
9000
- if set, emits prometheus metrics on this port instead of the default
All files placed in the server/src/
directory is eligible to be autoscanned for the DI container
provided that an object in the following format is exported by each file:
module.exports = {
// Name you want your module to be known for DI
name: "ComponentName",
// Constructor function for your Component, whatever this function
// returns will registered in the DI registry and will be injected when
// another component requests this component in its dependency list
service: serviceConstructorFunction,
// The DI container will look through its registry and inject these
// dependencies (with the exact names specified) into the serviceConstructorFunction
// for this component. They will be injected in the order in this list.
dependencies: ['dependency1', 'dependency2']
};
This service emits prometheus metrics on port 9000
by default, set the environment variable METRICS_PORT
to change that.
POST : /authenticate/signup
params: { email: String, password: String }
POST : /authenticate/login
params: { email: String, password: String }
GET : /authenticate/logout
params: N/A
Place template (pug/jade) files for partial pages for modules (ng-views, etc)
in their module folder found in ng-client/
. For example: all the templates used by the navbar
can be found in /ng-client/navbar
.
When trying to render a partial view from the client (an ng-include for example),
use the following address format: /partials/<module>/<view>
.