Skip to content

paullang/hapi-post-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example application with various HTTP POST routes with [Hapi.js] (https://npmjs.org/package/hapi "Hapi.js")

After downloading, run the following to download the node_modules

npm install

Please make sure you have node >= 4.0.0

node -v

Run the program with

node .

GET

curl http://localhost:8000/hello?name=Paul
should respond with 
{"greeting":"hello Paul"}

POST

curl http://localhost:8000/hello -d "name=Paul2"
should respond with
{"greeting":"POST hello Paul2"}

XHR POST examples for FormData, file uploads, HTML5 canvas blobs, and more

See [http://localhost:8000/examples.html] (http://localhost:8000/examples.html "examples")

About

HTTP POST example with hapi.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published