This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DIR_NAME=node-app-bootstrap; | |
function bootstrap_node_app() { | |
if which node > /dev/null | |
then | |
mkdir $DIR_NAME; | |
cd $DIR_NAME; | |
npm init -y > /dev/null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Redis from 'ioredis'; | |
export class ReactionService { | |
private redisClient: Redis | |
constructor() { | |
// connect to your redis instance first | |
this.redisClient = new Redis() | |
} |