0.13.6 • Published 7 years ago

redis-app v0.13.6

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

redis-app

Redis application archetype.

Named in honour of https://en.wikipedia.org/wiki/Richard_Feynman

This provides lifecycle boilerplate reused across similar applications.

Usage

The index.js entry-point uses the redis-app application archetype.

require('redis-app')(
    require('../package'),
    require('./spec'),
    async redisApp => Object.assign(global, redisApp),
    () => require('./main')
).catch(err => {
    console.error(err);
});

where we extract the config from process.env according to the spec and invoke our main function.

In the above example, we assign the archetype's dependencies on global before main.js is parsed i.e. including:

    const redisApp = {
        assert, clc, lodash, Promise,
        asserta, asserto,
        DataError, StatusError, UrlStatusError,
        redis, client, logger, config,
        multiExecAsync
    };

Uses

Used by

Inter alia:

https://twitter.com/@evanxsummers

0.13.6

7 years ago

0.13.5

7 years ago

0.13.4

7 years ago

0.13.3

7 years ago

0.13.2

7 years ago

0.13.1

7 years ago

0.12.2

7 years ago

0.12.1

7 years ago

0.11.7

7 years ago

0.11.6

7 years ago

0.11.5

7 years ago

0.11.4

7 years ago

0.11.3

7 years ago

0.11.2

7 years ago

0.11.1

7 years ago

0.10.3

7 years ago

0.10.2

7 years ago

0.10.1

7 years ago

0.9.17

7 years ago

0.9.16

7 years ago

0.9.15

7 years ago

0.9.14

7 years ago

0.9.13

7 years ago

0.9.12

7 years ago

0.9.11

7 years ago

0.9.10

7 years ago

0.9.9

7 years ago

0.9.8

7 years ago

0.9.6

7 years ago

0.9.5

7 years ago

0.9.4

7 years ago

0.9.3

7 years ago

0.9.2

7 years ago

0.9.1

7 years ago

0.8.14

7 years ago

0.8.13

7 years ago

0.8.12

7 years ago

0.8.11

7 years ago

0.8.10

7 years ago

0.8.9

7 years ago

0.8.8

7 years ago

0.8.7

7 years ago

0.8.6

7 years ago

0.8.5

7 years ago

0.8.4

7 years ago

0.8.3

7 years ago

0.8.2

7 years ago

0.8.1

7 years ago

0.8.0

7 years ago