plural-ytics


gcloud compute --project "starlit-granite-231015" ssh --zone "us-east1-c" "instance-1"
http://34.73.7.76:3000

cat /proc/version       ; cat /etc/*release*      ; uname -a      ; whoami   ; hostname
sudo apt-get upgrade
sudo apt-get update
sudo apt install curl
curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
sudo apt-get install -y nodejs
node --version
npm --version
sudo npm install express-generator -g
express -h
express web-endpoint --view=pug  # aka jade
   create : web-endpoint/
   create : web-endpoint/public/
   create : web-endpoint/public/javascripts/
   create : web-endpoint/public/images/
   create : web-endpoint/public/stylesheets/
   create : web-endpoint/public/stylesheets/style.css
   create : web-endpoint/routes/
   create : web-endpoint/routes/index.js
   create : web-endpoint/routes/users.js
   create : web-endpoint/views/
   create : web-endpoint/views/error.pug
   create : web-endpoint/views/index.pug
   create : web-endpoint/views/layout.pug
   create : web-endpoint/app.js
   create : web-endpoint/package.json
   create : web-endpoint/bin/
   create : web-endpoint/bin/www

   change directory:
     $ cd web-endpoint

   install dependencies:
     $ npm install

   run the app:
     $ DEBUG=web-endpoint:* npm start

cd web-endpoint
npm install
DEBUG=web-endpoint:* npm start
npm install --save-dev nodemon
update package.json
"scripts": {
    "start": "node ./bin/www",
    "devstart": "nodemon ./bin/www"
  },

DEBUG=web-endpoint:* npm run devstart



















Comments