1.0.12 • Published 7 years ago

fastify-nuxt v1.0.12

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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>
1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago