Home

Awesome

API Proxy 🚀


Simple API Proxy project - no storage layer, proxies results from underlaying API, built to be a boilerplate for API's, good training-hack-session and memory refresher.

Tested with NHTSA NCAP 5 Star Safety Ratings API.

Up and running

Local development environment

You have two options in doing so, running directly on the local terminal, or using docker along with docker-compose

Production deployment

Swagger

This project implements swagger-ui-express along with swagger-jsdoc which easily deploys a swagger UI page with all relevant documentation that is previously set in JSDoc format, following the OpenAPI a.k.a. Swagger specification.

After getting the API server up and running, you can navigate to http://localhost:8888/api-docs to use the Swagger UI :rocket:

Notes

{
  // Spread the baseModel[Count, Results, Message] Object
  ...baseModel
  "error":{
    "code": -999,
    "message": "Something really bad happened"
  }
}

Addendum

ENV variables

Node version

The project uses node 8.11 the latest LTS as of June 2018

Packages used