Tech in T: depth + breadth‎ > ‎Tools - Business‎ > ‎JavaScript‎ > ‎Demo‎ > ‎


gcloud config set project  email-245122; gcloud config set account ;  gcloud beta compute --project "email-245122" ssh --zone "us-central1-c" "instance-1"

gcloud config set project sptfy-spodnik; gcloud config set account mortezas@ # gcloud beta compute --project "sptfy-spodnik" ssh --zone "us-central1-a" "mortezas-instance-1"

sudo npm install express-generator -g
express email-server --view=pug  
cd email-server
npm install
sudo ufw allow http
sudo ufw allow https
sudo PORT=80 nodemon

add firewall rule for port 3000 for node
Add the firewall tag to the instance

nodemon OR npm start

DEBUG=email-server:* npm start
DEBUG=email-server:* nodemon

 npm install --save marked

downgraded node to 11.15.0 link

npm install --save webshot

To generate image puppeteer is the correct solution
$ npm install --save puppeteer
this should have been enough according to doc, bit didn't
const puppeteer = require('puppeteer');

(async () => {
  const browser = await puppeteer.launch({args: ['--no-sandbox']});
  const page = await browser.newPage();
  await page.goto('');
  const img = await page.screenshot({path: 'example.png'});

  await browser.close();


setup mysql