JavaScript: Variables (ES6)

Setup Project mkdir /Fundamentals cd Fundamentals npm init defaults npm install --save-dev babel-cli npm install --save-dev babel-preset-es2015 babel-preset-stage-2 touch variables.js atom . package.json { "name": "Fundamentals", "version": "1.0.0", "description": "", "main": "variables.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "start": "nodemon variables.js --exec babel-node --presets es2015,stage-2" }, "author": "", "license": "ISC", … Continue reading JavaScript: Variables (ES6)

NodeJS & MongoDB – create simple API

Setup Project mkdir <projectdir>/helloworld cd helloworld npm init name: version: description: Hello World API entry point: server.js test command: git repository: keywords: author: John Dunning license: npm install --save express body-parser mongoose bluebird npm install -g nodemon atom . Create server.js Create Model open Atom create folders ¬†app app/model app/model/person.js Start MongoDB mongod Start the … Continue reading NodeJS & MongoDB – create simple API

NodeJS & MongoDB Development Environment

Atom IDE Download Unzip and drag to installation location Open Atom Menu Bar -> Atom -> Install Shell Commands Open a terminal session atom . (opens atom in the current working directory) Menu Bar -> Atom Preferences Install -> Search and click Packages to find and install atom-beautify atom-jade json-converter jsonlint linter language-babel pretty-json … Continue reading NodeJS & MongoDB Development Environment

Git QuickRef

Clone a remote repository locally cd to target directory This remote repository is the origin referred to in all subsequent git commands Change local branch Create a local branch and Push to remote branch This will leave your current branch as is, create and checkout a new branch and keep all your changes This will … Continue reading Git QuickRef

Drools 6.x Expert – “no RuleTable cells in spreadsheet”

Drools 6.x Expert - "no RuleTable cells in spreadsheet" Error when working with Templates and Template Data in .xls files This has been reported a few times as a bug to JBoss and they have always come back and said that it cannot be replicated. There is a very good reason why this cannot be … Continue reading Drools 6.x Expert – “no RuleTable cells in spreadsheet”