Confluence Quick Ref

Add an automatic Table of Contents of child pages.  Simply type into the current page the following: {children To enter a code segment, simply type into the current page the following: {code To edit the block afterwards - click on the word Code Block in the block and click edit  


Create a Maven Project

In this example we will create an empty Maven Java Project. Install Dependencies Install Java Install Maven Install IDE Eclipse Netbeans Intellij IDEA Create Maven Project Intellij IDE Step 1 Open Intellij IDE Step 2 Create New Project Maven leave Create from archetype unchecked Next Step 3 GroupId: -e.g. ArtifactId: - e.g. MyProject Version: 1.0-SNAPSHOT … Continue reading Create a Maven Project

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