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
(function() { | |
const log = (msg) => console.log(msg) | |
const options = { | |
controller: undefined, | |
signal: undefined, | |
approveMaxTime: 2000, | |
url: 'https://jsonplaceholder.typicode.com/photos', | |
controller() { |
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
package main | |
import ( | |
"fmt" | |
) | |
type Entity interface { | |
Voice() string | |
} |
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
#!/bin/bash | |
# shell script for deploy node.js app (express.js app) | |
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - | |
sudo apt install -y nodejs | |
nodejs --version # need version 8.11.1 lts, includes npm 5.6.0 | |
npm --version # need version >= 5.6.0 | |
sudo apt install git | |
cd /var/www/ | |
git clone [email protected]:user-account/repo-name.git | |
cd repo-name/server |