0.5.13 • Published 5 years ago

@goldpage/hapi v0.5.13

Weekly downloads
14
License
-
Repository
github
Last release
5 years ago

Goldpage + Hapi = :heart:

@goldpage/hapi

Use Goldpage with Hapi.

Usage

Install @goldpage/hapi.

$ npm install @goldpage/hapi

The plugin is automatically loaded and a Hapi plugin is now available at require('goldpage').hapi.

Example

// ./example/server.js

const Hapi = require('hapi');
const ssr = require('goldpage');

startServer();

async function startServer() {
  const server = Hapi.Server({
    port: process.env.PORT || 3000,
    debug: {request: ['internal']},
  });

  await server.register(ssr.hapi);

  await server.start();

  console.log('Server running');
}
0.5.12

5 years ago

0.5.13

5 years ago

0.5.11

5 years ago

0.5.10

5 years ago

0.5.9

5 years ago

0.5.8

5 years ago

0.5.7

5 years ago

0.5.6

5 years ago

0.5.5

6 years ago

0.5.4

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago