Skip to content

Instantly share code, notes, and snippets.

View rokity's full-sized avatar
🏠
Working from home

Riccardo Amadio rokity

🏠
Working from home
View GitHub Profile
@rokity
rokity / hapiExample.js
Created September 3, 2017 12:46 — forked from nvcexploder/hapiExample.js
basic hapi.js example highlighting HTTP methods and a few request parameters
/*
For this to run, ensure that `npm install hapi` has happened in your directory
setup whilst writing this:
iojs v. 1.0.5
hapi 8.2.0
*/
var Hapi = require('hapi');
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var assert = require('assert')
console.log('\n===========');
console.log(' mongoose version: %s', mongoose.version);
console.log('========\n\n');
var dbname = 'testing_geojsonPoint';