This file contains hidden or 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
Download BotFramework emulator: https://github.com/microsoft/BotFramework-Emulator/releases | |
SLIDES: https://github.com/Blesfia/nodeconf-template/blob/master/slides.pdf | |
1. (10:00-10:15m) Start: git clone https://github.com/Blesfia/nodeconf-template.git | |
2. (10:15-10:30m) Console bot: git checkout -q 01-console | |
3. (10:30-10:45m) BotFramework Adapter: git checkout -q 02-bframework-emulator | |
4. (10:45-10:50m) Bot Memory: git checkout -q 03-memory | |
Note: You will have to change the google.json in the repository to use Dialogflow, the actual key is not working to avoid security problems. ;) | |
5. (10:50-11:00m) Recognizer: git checkout -q 04-nlu | |
6. (11:00-11:10m) Waterfall: git checkout -q 05-dialogs |
This file contains hidden or 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 { ActivityTypes, BotAdapter, TurnContext } from 'botbuilder'; | |
import * as readline from 'readline'; | |
import { promisify } from 'util'; | |
export class ConsoleAdapter extends BotAdapter { | |
private nextId = 0; | |
private reference; | |
constructor() { | |
super(); |
This file contains hidden or 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
Challenge | |
* NestJS: https://docs.nestjs.com/ | |
* Example code: https://github.com/salorrego/nestjs-workshop-2018 | |
* Unit testing: https://docs.nestjs.com/fundamentals/unit-testing | |
* MongoDB Free: https://mlab.com/home | |
* NestJS - Mongoose: https://docs.nestjs.com/techniques/mongodb | |
* Two contributors by Homework | |
TechStack: | |
NodeJS + TypeScript + NestJS + Mongoose + Unit testing |