Skip to content

Instantly share code, notes, and snippets.

@wtnabe
Created August 7, 2020 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wtnabe/899891b7400169b567de78ccc5db0f25 to your computer and use it in GitHub Desktop.
Save wtnabe/899891b7400169b567de78ccc5db0f25 to your computer and use it in GitHub Desktop.
import { NestFactory } from '@nestjs/core'
import { AppModule } from './app.module'
const repl = require('repl')
async function bootstrap () {
const app = await NestFactory.createApplicationContext(AppModule)
console.log('starting repl ...')
repl.start().context.app = app
}
;(async () => {
await bootstrap()
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment