FastifyJS plugin work with NuxtJS
Switch branches/tags
Nothing to show
Clone or download
Latest commit 4dade9e Oct 30, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
pages update version 1.0.10 Oct 30, 2017
.gitignore
README.md update readme Oct 30, 2017
example.js update version 1.0.10 Oct 30, 2017
index.js update version 1.0.10 Oct 30, 2017
nuxt.config.js update version 1.0.10 Oct 30, 2017
package.json

README.md

fastify-nuxt

FastifyJS plugin work with NuxtJS

install

npm install fastify-nuxt --save

Usage

const fastify = require('fastify')()

fastify.register(require('fastify-nuxt'))
fastify.ready()

fastify.listen(3000, err => {
  if (err) throw err
  console.log('Server listenging on http://localhost:3000')
})

With nuxt.config.js

const fastify = require('fastify')()
const nuxtConfig = require('./nuxt.config')

fastify.register(require('fastify-nuxt'), nuxtConfig)
fastify.ready()

fastify.listen(3000, () => {
    console.info('> Listening on port 3000')
})

All pages are store in pages directory, you can see more in documentation .

<!--  pages/index.vue -->
<template>
  <div>
    <h3>Home</h3>
    <nuxt-link to="/about">About</nuxt-link>
  </div>
</template>