@boundstate/hapi-typeorm

Responsive Swagger docs for Hapi

Usage no npm install needed!

<script type="module">
  import boundstateHapiTypeorm from 'https://cdn.skypack.dev/@boundstate/hapi-typeorm';
</script>

README

hapi-typeorm

Typeorm for Hapi.

Usage

npm install @boundstate/hapi-typeorm
import * as Hapi from 'hapi';
import {hapiTypeorm} from '@boundstate/hapi-typeorm';

const server = new Hapi.Server();

server.register({
  register: hapiTypeorm,
  options: {
    connectionOptions: {
      // Options passed to typeorm
      // see https://github.com/typeorm/typeorm#creating-a-connection-to-the-database
    },
  },
}).then((err) => {

});