Skip to content

Instantly share code, notes, and snippets.

@david-sanchez-deel
david-sanchez-deel / Challenges
Last active September 6, 2018 03:52
Challenge.txt
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
@david-sanchez-deel
david-sanchez-deel / console.adapter.ts
Created June 11, 2019 00:35
Console adapter to bot builder V4 simplified
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();
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