0.0.8 • Published 6 years ago

tymly-runner v0.0.8

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Tymly-runner

JavaScript Style Guide license

A configurable environment for running Tymly instances.

Tests

$ npm test

Environment Variables

Before starting, please set following environment variables:

Variable NameDescription
PG_CONNECTION_STRINGConnection string pointing to a specific PostgreSQL database, e.g. PG_CONNECTION_STRING=postgres://postgres:postgres@localhost:5432/my_test_db.
TYMLY_AUTH_SECRETA secret or private key used when signing JWT Tokens. For example TYMLY_AUTH_SECRET=Shh!.
TYMLY_AUTH_AUDIENCESpecifies an audience (aud) alongisde TYMLY_AUTH_SECRET when signing a JWT, e.g. TYMLY_AUTH_AUDIENCE="I am the audience!".
TYMLY_PLUGINS_PATHPlugin directories to use at boot-time, ; delimited if multiple sources. For example: TYMLY_PLUGINS_PATH="/plugins/production/*-plugin;/plugins/development/*-plugin".
TYMLY_BLUEPRINTS_PATHExactly the same as TYMLY_PLUGINS_PATH, but used to specifiy the location(s) of blueprints to load at boot time, e.g. TYMLY_BLUEPRINTS_PATH="/blueprints/production/*-blueprint;/plugins/development/*-blueprint".
TYMLY_ADMIN_USERIDIdentifies a username (that will be decoded from incoming JWT tokens) which should be treated as an administrator. For example: TYMLY_ADMIN_USERID=bigboss.
TYMLY_ADMIN_ROLESIndicates which roles should be automatically granted to the user identified by TYMLY_ADMIN_USERID (delimited by ,). For example: TYMLY_ADMIN_ROLES=tymly_admin.
DEBUGWe use the debug package, where Tymly plugin and state names equate to debug modules, for example: DEBUG=tymly,processingCscFiles,-express.

Starting

$ npm run start

License

MIT