Skip to main content

Posts

Typescript Express Project base

Create repo on github with gitignore set to node $ mkdir <path/foldername> && cd <path/foldername> $ git init $ git remote add origin https://github.com/biboyatienza/typescript-expressjs.git $ git pull origin master $ echo "# typescript-expressjs" >> README.md $ npm init $ git add . $ git commit -m "first commit" $ git push -u origin master $ npm i -D typescript tslint $ npm i express -S $ npm i @types/express -D $ code tsconfig.json {     "compilerOptions": {       "module": "commonjs",       "esModuleInterop": true,       "target": "es6",       "moduleResolution": "node",       "sourceMap": true,       "outDir": "dist"     },     "lib": ["es2015"]   } $ code tslint.json {     "defaultSeverity": "error",     "extends": [         "tslint:recommended"     ],     "jsRule...

PWA - Service Worker

// https://github.com/185driver/pwa-app-updates /* eslint-disable no-undef, no-underscore-dangle, no-restricted-globals */ // This is the code piece that GenerateSW mode can't provide for us. // This code listens for the user's confirmation to update the app. self . addEventListener ( "message" , ( e ) => { if (! e . data ) { return ; } switch ( e . data ) { case "skipWaiting" : self . skipWaiting (); break ; default : // NOOP break ; } }); workbox . core . clientsClaim (); // Vue CLI 4 and Workbox v4, else // workbox.clientsClaim(); // Vue CLI 3 and Workbox v3. // The precaching code provided by Workbox. self . __precacheManifest = []. concat ( self . __precacheManifest || []); // workbox.precaching.suppressWarnings(); // Only used with Vue CLI 3 and Workbox v3. workbox . precaching . precacheAndRoute ( self . __precacheManifest , {}); // END OF => https://github.com/185driver/pwa-app-updates workbox ....

Ubunut 20.04 LTS | Installing vue cli

bboy@LatE7450:~/Documents/Codes$ npm install -g @vue/cli npm WARN deprecated @hapi/joi@15.1.1: joi is leaving the @hapi organization and moving back to 'joi' ( https://github.com/sideway/joi/issues/2411 ) npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained npm WARN deprecated @hapi/address@2.1.4: This version has been deprecated and is no longer supported or maintained npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated urix@0.1.0: Please see https://gi...

Ubuntu 20.04 LTS | Installing curl and yarn

bboy@LE7450:~$ curl Command 'curl' not found, but can be installed with: sudo apt install curl bboy@LE7450:~$ sudo apt install curl [sudo] password for bboy: Reading package lists... Done Building dependency tree       Reading state information... Done The following package was automatically installed and is no longer required:   libfprint-2-tod1 Use 'sudo apt autoremove' to remove it. The following additional packages will be installed:   libcurl4 The following NEW packages will be installed:   curl libcurl4 0 upgraded, 2 newly installed, 0 to remove and 33 not upgraded. Need to get 394 kB of archives. After this operation, 1,115 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://ph.archive.ubuntu.com/ubuntu focal-updates/main amd64 libcurl4 amd64 7.68.0-1ubuntu2.2 [233 kB] Get:2 http://ph.archive.ubuntu.com/ubuntu focal-updates/main amd64 curl amd64 7.68.0-1ubuntu2.2 [161 kB] Fetched 394 kB in 4s (108 kB/s) Selecting previously u...

Ubunut 20.04 LTS | Installing nvm

bboy@LE7450:~$ sudo apt-get update -y bbboy@LE7450:~$ sudo apt-get install build-essential libssl-dev -y bbboy@LE7450:~$ wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash bbboy@LE7450:~$ source ~/.profile bbboy@LE7450:~$ nvm --version 0.35.3

Ubuntu 20.04 LTS - git installation

bboy@LE7450:~$ git Command 'git' not found, but can be installed with: sudo apt install git bboy@LE7450:~$ sudo apt install git [sudo] password for bboy: Reading package lists... Done Building dependency tree       Reading state information... Done The following package was automatically installed and is no longer required:   libfprint-2-tod1 Use 'sudo apt autoremove' to remove it. The following additional packages will be installed:   git-man liberror-perl Suggested packages:   git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk   gitweb git-cvs git-mediawiki git-svn The following NEW packages will be installed:   git git-man liberror-perl 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 5,464 kB of archives. After this operation, 38.4 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://ph.archive.ubuntu.com/ubuntu focal/main amd64 liberror-perl all 0.17029-1 [26.5 kB] Get:2 http://ph...