The following guide will show you how to deploy a simple microservice written in JavaScript using 𝚫 now.
It uses Open Source tools that are widely available, tested and understood:
- Node.JS
- NPM
- Express
| /* | |
| Made by Elly Loel - https://ellyloel.com/ | |
| With inspiration from: | |
| - Josh W Comeau - https://courses.joshwcomeau.com/css-for-js/treasure-trove/010-global-styles/ | |
| - Andy Bell - https://piccalil.li/blog/a-modern-css-reset/ | |
| - Adam Argyle - https://unpkg.com/[email protected]/normalize.min.css / https://codepen.io/argyleink/pen/KKvRORE | |
| Notes: | |
| - `:where()` is used to lower specificity for easy overriding. | |
| */ |
| /* | |
| ===================================================================== | |
| arrayToGovukTable | |
| Convert an array to form needed for govukTable macro | |
| ===================================================================== | |
| Expects array or nested array. | |
| Usage: |
| # Local-Remote synchronization of directories/files | |
| # NOTE: Deletions are NOT considered yet. | |
| # Usage | |
| # ----- | |
| # Local-remote sync: | |
| # make -f Makefile.rsync lrsync SERVER=my_host PROJECT=project_name LOCAL_BASEDIR=/Users/my_name/dev REMOTE_BASEDIR=/home/my_name/dev | |
| # | |
| # Remote-local sync: | |
| # make -f Makefile.rsync rlsync SERVER=my_host PROJECT=project_name LOCAL_BASEDIR=/Users/my_name/dev REMOTE_BASEDIR=/home/my_name/dev |
| /* | |
| Generates EightShapes Contrast Grid or Christopher Geary's "Contrast" tool | |
| URLs from InVision DSM or Brand.ai. | |
| Usage for Contrast Grid URL: | |
| node contrast-grid-url.js [URL] | |
| Usage for Contrast URL: |
| #!/usr/local/bin/python3 | |
| # Michael Yoshitaka Erlewine 2016, public domain | |
| # instructions: | |
| # brew install enscript | |
| # Install PDFtk | |
| # current build: https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.11-setup.pkg | |
| # | |
| # setup csv with EasyChair ID, desired filename, authors |
The following guide will show you how to deploy a simple microservice written in JavaScript using 𝚫 now.
It uses Open Source tools that are widely available, tested and understood:
| Brad Frost: | |
| TBC | |
| Alicia Sedlock: | |
| https://speakerdeck.com/aliciasedlock/jumping-into-front-end-testing | |
| Richard Rutter: | |
| http://webtypography.net/talks/upfront2015/ | |
| Soledad Penadés: |
| function archive_all(testOnly) { | |
| var someMessages, archiveButton; | |
| if (testOnly === "undefined") { testOnly = false; } | |
| someMessages = $("li._k- span.accessible_elem"); | |
| console.log("Found", someMessages.length, "messages to archive in your inbox."); | |
| archiveButton = null; | |
| someMessages.each(function () { |
| /* | |
| URLs: | |
| http://localhost:3000/arrive?foo=bar&utm_source=smart-redir | |
| */ | |
| var redirect = require('redirect-with-params'); | |
| var express = require('express'); | |
| var app = express(); | |
| app.use(redirect({ |