Working intro file to using Page.js for single page routing
Requires
- page.js
- lit-html
Resources
| const fs = require('fs'); | |
| const { promisify } = require('util'); | |
| /** | |
| * @typedef {Object} ReadJSONResponse | |
| * @property {Boolean} error Did an error occur attempting to read the file or parse it to JSON | |
| * @property {JSON} data Data contained in the file or an empty object if there was an error | |
| * @property {string} message Details about the results send back. Will always be 'Success' for sucess and the message from the error if one occurred | |
| */ |
| /* | |
| * R e a d m e | |
| * ----------- | |
| * | |
| * In this file you can include any instructions or other comments you want to have injected onto the | |
| * top of your final script. You can safely delete this file if you do not want any such comments. | |
| */ | |
| MyIni storageReader = new MyIni(); | |
| IEnumerator<bool> statemachine; |
| #!/bin/bash | |
| # ================== | |
| # Linux server setup script | |
| # ================== | |
| # Check if root | |
| if [[ $(id -u) -ne 0 ]]; then | |
| echo "Script must be run as root user!" | |
| exit 1 |
| import { TemplateResult } from 'lit-html'; | |
| import { BehaviorSubject } from 'rxjs'; | |
| interface iPageInput { | |
| name: string; | |
| tag: string, | |
| } | |
| interface Page extends iPageInput { | |
| active: boolean |
| { | |
| "home": "/var/lib/qaform" | |
| } |
| const http = require('http'); | |
| const functions = [ | |
| (context) => ({ ...context, name: "hello context" }), | |
| (context) => { | |
| return new Promise((resolve, reject) => { | |
| const url = 'http://site.api.espn.com/apis/site/v2/sports/hockey/nhl/teams/30' | |
| http.get(url, response => { | |
| let output = ''; |
| upstream docker-web { | |
| server ui; | |
| } | |
| upstream docker-api { | |
| server api:3000; | |
| } | |
| server { | |
| listen 80; |
A place for me to store information I have found useful while working with SSH
ssh -L <localport>:localhost:<remote-port> <remote-hostname>ssh -L 3000:localhost:3000 tdkottke.com| # Node Modules | |
| node_modules/ | |
| # App Configs | |
| ./config/ | |
| # Logs | |
| logs/ | |
| # Bundles |