This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Build our Angular app | |
FROM node:alpine as builder | |
WORKDIR /app | |
COPY package.json package-lock.json ./ | |
ENV CI=1 | |
RUN npm ci | |
COPY . . | |
RUN npm run build -- --prod --output-path=/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fetch(url, { | |
method: "get", //put your method | |
headers: { | |
"Content-Type": "application/json", | |
"X-Requested-With": "XMLHttpRequest", | |
"Access-Control-Allow-Origin": "*" | |
}, | |
mode: 'no-cors' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Programming Quiz: Countdown, Liftoff! (4-3) | |
* | |
* Using a while loop, print out the countdown output above. | |
*/ | |
// your code goes here | |
var tSeconds = 60; | |
while (tSeconds >= 0){ |