Very simple code Modern code Junior friendly Typescript Made with 💛
yarn add @onesy/redisAdd redis peer dependency.
yarn add redis import OnesyRedis from '@onesy/redis';
// Make if you wanna a config file and
// inside of it add all the process.env related props
import Config from './config';
// Make a new amqp instance
const onesyRedis = new OnesyRedis({
uri: Config.amqp.redis.uri
});
// Await for a client connection
await onesyRedis.client;
// Send to a queue
await onesyRedis.publish('a', 'a'); Install
yarnTest
yarn testOne time local setup
Install docker and docker-compose
Make docker containers
yarn dockerBuild
yarn build