Skip to content

A Hapi.js based RESTful API server for Foodle App. Features API validation via JOI, OAuth (Twitter & Google) via Hapi-Bell, Hapi-Cookie session Authentication, Docker-based deployment.

Notifications You must be signed in to change notification settings

JaganKaartik/Hapi-Foodle-API

Repository files navigation

Foodle: Hapi.js based RESTful API

A Hapi.js based RESTful API.

Requirements:

  1. Node.js / npm package manager
  2. Yarn package manager

Install Yarn globally by,

npm i -g yarn

Instructions:

Clone the repo,

git clone https://github.com/JaganKaartik/Foodle_Hapi_REST_API.git
cd Foodle_Hapi_REST_API

Install all the dependencies by,

yarn run install 

To start the server run,

yarn run dev

Alternatively you can specify the enviornment and start the server by,

export NODE_ENV=development 
yarn run start

API is served from http://localhost:8888

API Reference

    GET
    /api/dish/all
    Response: Array<dish>

    /api/dish/{id}
    Response: dish

    POST
    /api/dish/add
    Body: added dish

    PUT
    /api/dish/update
    Body: updated dish

    DELETE
    /api/dish/delete/{id}
    /api/dish/delete/all

GET /api/dish/all

GET /api/dish/{id}

POST /api/dish/add

PUT /api/dish/update

DELETE /api/dish/delete/{id}

About

A Hapi.js based RESTful API server for Foodle App. Features API validation via JOI, OAuth (Twitter & Google) via Hapi-Bell, Hapi-Cookie session Authentication, Docker-based deployment.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •