A lightweight application archetype for Node.js Redis-based microservices, providing lifecycle boilerplate such as configuration loading from environment variables, database client initialization, graceful shutdown, and dependency injection. Version 0.13.6 (stable), low release cadence. Differentiators: minimal setup, integrates app-spec for spec-based config validation, and attaches common dependencies (lodash, redis, logger) to global scope for convenience. Suited for rapid prototyping and small utilities.
npm install redis-appNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows the typical usage: require redis-app with package.json, a spec object, a callback to assign dependencies to global, and a main function.
Use the provided redisApp object directly instead of Object.assign(global, redisApp).
Ensure spec object has proper keys with type and default properties.
Set required environment variables or provide defaults in the spec.
Use require('redis-app')() - it returns a function that must be called.Run 'npm install app-spec'.
Call Object.assign(global, redisApp) in the callback.
Add a default to the spec or set the FOO environment variable.