dubrechi / hapi-v17-crud-sample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hapi v17 CRUD sample

A simple CRUD sample using Hapi v17.

What is this repository for?

  • Having an enormous revision on the release of v17, this sample code can serve as a guide on creating a simple CRUD using hapi v17. This code uses postgreSQL as database.

Setup

  • Create a table named 'promise' with columns 'id' as primary key and 'name' on your postgre db.
  • run npm start.

Usage

Create

{
    "name": "luke"
}

Read

Update

{
    "name": "chewy"
}

Delete

About


Languages

Language:JavaScript 100.0%