These instructions assume the following:
- You have your MongoDB database up and running
- You are going to configure Azure via the Azure Portal
- Create a new App Service Plan resource
These instructions assume the following:
| #!/bin/bash | |
| ##################################################### | |
| # Name: Bash CheatSheet for Mac OSX | |
| # | |
| # A little overlook of the Bash basics | |
| # | |
| # Usage: | |
| # | |
| # Author: J. Le Coupanec | |
| # Date: 2014/11/04 |
| <?xml version="1.0"?> | |
| <configuration> | |
| <system.webServer> | |
| <rewrite> | |
| <rules> | |
| <rule name="React Routes" stopProcessing="true"> | |
| <match url=".*" /> | |
| <conditions logicalGrouping="MatchAll"> | |
| <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> | |
| <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> |
| var aadTenant = "yourTenant.onmicrosoft.com", | |
| spaClientId = "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}", //AAD app client id for this app | |
| serviceClientId = "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}", //AAD app client id for the service API app | |
| var serviceUrl = "http://localhost:8081/api/doSomething"; // the service API endpoint | |
| var authContext = new AuthenticationContext({ | |
| instance: 'https://login.microsoftonline.com/', | |
| tenant: aadTenant, | |
| clientId: spaClientId, | |
| postLogoutRedirectUri: window.location.origin, |