type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
| import { Module } from '@nestjs/common'; | |
| import { ConfigService } from './config.service'; | |
| @Module({ | |
| providers: [ | |
| { | |
| provide: ConfigService, | |
| useValue: new ConfigService('.env'), | |
| }, | |
| ], |
| // https://testing-library.com/docs/example-react-router | |
| import React from "react"; | |
| import { Router } from "react-router-dom"; | |
| import { render } from "@testing-library/react"; | |
| import { createMemoryHistory } from "history"; | |
| // test utils file | |
| function renderWithRouter( | |
| ui, |
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
Picking the right architecture = Picking the right battles + Managing trade-offs
| var mongoObjectId = function () { | |
| var timestamp = (new Date().getTime() / 1000 | 0).toString(16); | |
| return timestamp + 'xxxxxxxxxxxxxxxx'.replace(/[x]/g, function() { | |
| return (Math.random() * 16 | 0).toString(16); | |
| }).toLowerCase(); | |
| }; |