Download and install Postman using this link.
In this guide, we use the Windows Subsystem for Linux and Ubuntu. If you do not already have WSL installed, follow these instructions for Windows 10.
Open PowerShell, type bash and press enter, and then run the following commands to install Node.js on Ubuntu using WSL:
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash /
-sudo apt-get install -y nodejs
Verify installation was completed successfully by running the following command:
npm -v
Open PowerShell, type bash and press enter, and then run the following commands**:**
sudo apt-get install git
cd \~
git clone https://github.com/Azure/gaming.git
Download and install the Windows SDK here.
-
As of 2.0.1-beta.26, a worker runtime setting is required and can be set using the following command. Since we are developing JavaScript functions, you will be using the node runtime. This will modify the local.settings.json file of the current Azure Functions project.
func settings add FUNCTIONS_WORKER_RUNTIME node
-
Auto cert generation is currently unavailable on the .NET core build, so you will need to run the following commands in PowerShell in order to generate the SSL certs you need:
$cert = New-SelfSignedCertificate -Subject localhost -DnsName localhost -FriendlyName "Functions Development" -KeyUsage DigitalSignature -TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.1")
Export-PfxCertificate -Cert $cert -FilePath certificate.pfx -Password (ConvertTo-SecureString -String <password> -Force -AsPlainText)
- Start the Azure Functions host with HTTPS over a custom port using the following command to verify configuration. Press CTRL + C to exit. :
func host start --port 4034 --useHttps --cert <yourCertificate>.pfx --password <theCertificatePrivateKey>