Skip to content

Instantly share code, notes, and snippets.

View benjaminudoh10's full-sized avatar

Benjamin benjaminudoh10

View GitHub Profile
@benjaminudoh10
benjaminudoh10 / bootstrap-node-app.sh
Created January 2, 2023 14:16
Bootstrap NodeJS Application
#!/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;
@benjaminudoh10
benjaminudoh10 / reactions.service.ts
Last active April 15, 2023 16:55
Add reaction to feed
import Redis from 'ioredis';
export class ReactionService {
private redisClient: Redis
constructor() {
// connect to your redis instance first
this.redisClient = new Redis()
}