ANGULAR— Stackerblitz to Github to Azure —

Development to Deployment all in a Browser

Vikash Gupta
1 min readOct 6, 2019

Prerequisites:

  1. Stackerblitz account
  2. Github account (Preferable same as 1)
  3. Azure account

Step 1 — Create Stackerblitz Angular project

Changes to files:

a. Add file src/tsconfig.app.json with below content

{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"module": "es2015",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2018",
"dom"
]
}
}

b. Add folder src/environments with 2 file

File --> environment.tsexport const environment = {production: false};File --> environment.prod.ts
export const environment = {
production: false};

c. Add new file src/web.config

<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".json" mimeType="application/json" />
<remove fileExtension=".woff"/>
<mimeMap fileExtension=".woff" mimeType="application/font-woff" />
<mimeMap fileExtension=".woff2" mimeType="font/woff2" />
</staticContent>

<rewrite>
<rules>
<rule name="Angular" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="/" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

Step 2— Checkin to github from stackerblitz

Step 3— Create web app service in azure

Step 4— Create azure devops with the git hub repository

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response