- [Instructor] Now before I dive deep into code, let me introduce you to my development machine. This is a simple Windows 10 machine. I've chosen to do all my demos in NodeJS because if you're following on a Mac and so on and so forth, you should be able to follow along with the same instructions. You do have a choice of writing all this code in .NET also using a Bot Builder SDK, so but then that limits you to C# and Visual Studio. I have a prompt here installed called commander.
You can use PowerShell or Bash, any prompt that understands NPM. I also went ahead and installed NodeJS from nodejs.org; and I updated NPM, so let me show you what versions I'm working on. So my Node version is 8.9.4, and my NPM version is 5.6.0. I think if you're in a relatively newer version, everything I'm showing should work. Okay, so let's start with our first project.
Let's call it simplebot and let's go ahead and set up our node package.json and let's open this in Visual Studio Code. Here I'm going to go ahead and make some minor changes. I intend to add a script called index.js in the root. So I'll say NPM start should call index.js. I'll say start; and using node, we can execute index.js.
So let's take care of that. I will create a index.js in a moment as well. I want to add a few dependencies. So one dependency I will add is a Bot Builder SDK, and this has been provided by Microsoft. So let's go ahead and add that. And another component I will add is restify. Restify simply allows me to create a simple web server on a REST-based interface; so that's restify.
And to help my coding, I'll also go ahead and add the types for restify like this. Now let's go back to my terminal, and I'm going to say NPM install; and this'll go ahead and download the node packages that I just added: Bot Builder, restify, and the types. And while that is running, let's go back to my Visual Studio Code project and let's create a new file here called index.js and that is where my actual code will go.
- What are bots?
- Creating bots
- Testing using ngrok
- Deploying bots to Microsoft Teams
- Testing bots
- Bots as Azure AD applications
- Updating bot registration in Azure
- Building the bot package