This tutorial uses the "Sample hapi.js REST API" project.
Take a look at: https://github.com/agendor/sample-hapi-rest-api/
##Topics
- Introduction
- Installing Node.js
- Installing MySQL
- Setting-up the project
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
| { | |
| method: 'POST', | |
| path: '/dostuff', | |
| config: { | |
| auth: false, | |
| cors: { | |
| additionalHeaders: ['accept'] | |
| }, | |
| handler: handleStuff | |
| } |
| /* | |
| 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'); |
This tutorial uses the "Sample hapi.js REST API" project.
Take a look at: https://github.com/agendor/sample-hapi-rest-api/
##Topics