Video Link: Apache Kafka Crash Course | What is Kafka?
- Knowledge
- Node.JS Intermediate level
- Experience with designing distributed systems
- Tools
- Node.js: Download Node.JS
- Docker: Download Docker
- VsCode: Download VSCode
| FROM ubuntu | |
| RUN apt-get update | |
| RUN apt-get install -y curl | |
| RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - | |
| RUN apt-get upgrade -y | |
| RUN apt-get install -y nodejs | |
| COPY package.json package.json | |
| COPY package-lock.json package-lock.json |
Video Link: Apache Kafka Crash Course | What is Kafka?
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
Create free AWS Account at https://aws.amazon.com/
I would be creating a t2.medium ubuntu machine for this demo.
| func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) { | |
| guard let serverTrust = challenge.protectionSpace.serverTrust else { | |
| completionHandler(.cancelAuthenticationChallenge, nil); | |
| return | |
| } | |
| let certificate = SecTrustGetCertificateAtIndex(serverTrust, 0) | |
| // SSL Policies for domain name check | |
| let policy = NSMutableArray() |
| src=$1 | |
| dest=$2 | |
| current_directory=$(pwd) | |
| cd $src | |
| stashes=$(git stash list) | |
| IFS=$'\n' | |
| stash_messages=() | |
| for stash in $stashes; do |