Simple node api with hapi.js.
Start the api @ port 8000 from command line: npm run start
.
The package.json has some, install everything from command line with npm i
, the nodemon is included, but isn't necessary as it is executed with npx
.
After starting the server, you'll have the following routes:
/hello
- Simple hello gif
/getSubmit
- Submit a GET request and receive a dummy message or json.
/postSubmit
- Submit a POST request and receive a dummy message or json.