Stocks
Generate a Microsoft Teams application.
TODO: Add your documentation here
Getting started with Microsoft Teams Apps development
Head on over to official documentation to learn how to build Microsoft Teams Tabs.
Building the tab
npm i -g gulp
gulp build
Building the manifest
gulp manifest
Output
- dist/* - the files required to host the solution
- package/* - the Teams extensibility package (zip file) to be uploaded to Microsoft Teams (how-to)
Express hosting
If you choose to use Express hosting when you create your Tab project, a file called ./src/server.ts
will be created. Node is automatically configured to start this Express server when deployed to Azure.
Deploying to Azure using Git
If you want to deploy to Azure using Git follow these steps.
This will automatically deploy your files to Azure, download the npm pacakges, build the solution and start the web server using Express.
- Log into the Azure Portal
- Create a new Resource Group or use an existing one
- Create a new Web App and give it the name of your tab, the same you used when asked for URL in the Yeoman generator. In your case https://stocks.ngrok.io.
- Go to the created Web App and configure Deployment Credentials. Not that this is only done once per Microsoft Azure Account.
- Go to Deployment Options
- Choose Local Git Repository as source and click OK
- In your tab folder initialize a Git repository using
git init
- Build the solution using
gulp build
to make sure you don't have any errors - Commit all your files using
git add -A && git commit -m "Initial commit"
- Run the following command to set up the remote repository:
git remote add azure https://<username>@stocks.scm.azurewebsites.net:443/stocks.git
. You need to replace with the name of the user you set up in Deployment Credentials. You can also copy the URL from Options in the Azure Web App. - To push your code use to Azure use the following command:
git push azure master
, you will be asked for your credentials the first time - Wait until the deployment is completed and navigate to https://stocks.ngrok.io/privacy.html to test that the web application is running
- Done
- Repeat step 11 for every commit you do and want to deploy