# redis-app

> Redis application archetype.

Latest version **0.13.6** (published 2017-03-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install redis-app
pnpm add redis-app
yarn add redis-app
bun add redis-app
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.13.6 |
| Published | 2017-03-17 |
| First published | 2017-03-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | @evanxsummers |
| Maintainers | evanx |

## Links

- npm: https://www.npmjs.com/package/redis-app
- Repository: https://github.com/evanx/redis-app
- Homepage: https://github.com/evanx/redis-app#readme
- Issues: https://github.com/evanx/redis-app/issues
- npm.io page: https://npm.io/package/redis-app

## Dependencies (10)

- [redis](https://npm.io/package/redis.md) ^2.6.4
- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [objecta](https://npm.io/package/objecta.md) ^0.1.7
- [app-spec](https://npm.io/package/app-spec.md) ^0.11.6
- [bluebird](https://npm.io/package/bluebird.md) ^3.4.6
- [cli-color](https://npm.io/package/cli-color.md) ^1.1.0
- [reduce-keys](https://npm.io/package/reduce-keys.md) ^0.1.5
- [map-properties](https://npm.io/package/map-properties.md) ^0.1.2
- [multi-exec-async](https://npm.io/package/multi-exec-async.md) ^0.2.0
- [redis-logger-rpf](https://npm.io/package/redis-logger-rpf.md) ^0.3.2

## Recent versions

- 0.13.6 (latest) — 2017-03-17
- 0.13.5 — 2017-03-17
- 0.13.4 — 2017-03-17
- 0.13.3 — 2017-03-16
- 0.13.2 — 2017-03-16
- 0.13.1 — 2017-03-16
- 0.12.2 — 2017-03-14
- 0.12.1 — 2017-03-14
- 0.11.7 — 2017-03-12
- 0.11.6 — 2017-03-12
- 0.11.5 — 2017-03-12
- 0.11.4 — 2017-03-12
- 0.11.3 — 2017-03-12
- 0.11.2 — 2017-03-12
- 0.11.1 — 2017-03-12
- … 34 more at https://npm.io/package/redis-app/versions

## README

# 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.
```javascript
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

- https://github.com/evanx/app-spec

## Used by

Inter alia:
- https://github.com/evanx/scan-expire
- https://github.com/evanx/scan-llen
- https://github.com/evanx/retask
- https://github.com/evanx/refile
- https://github.com/evanx/recopy
- https://github.com/evanx/resplit
- https://github.com/evanx/reimport

<hr>

https://twitter.com/@evanxsummers

---
_Source: https://npm.io/package/redis-app · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
