# fastify-nuxt

> VueJS server side rendering support for Fastify with NuxtJS

Latest version **1.0.12** (published 2017-10-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install fastify-nuxt
pnpm add fastify-nuxt
yarn add fastify-nuxt
bun add fastify-nuxt
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.12 |
| Published | 2017-10-30 |
| First published | 2017-10-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+8 in 2 direct dependencies) |
| Install scripts | no |
| Maintainers | lyquocnam |
| Keywords | fastify, fastify plugin, vuejs, nuxtjs, ssr, vue ssr, server side rendering |

## Links

- npm: https://www.npmjs.com/package/fastify-nuxt
- Repository: https://github.com/lyquocnam/fastify-nuxt
- Homepage: https://github.com/lyquocnam/fastify-nuxt#readme
- Issues: https://github.com/lyquocnam/fastify-nuxt/issues
- npm.io page: https://npm.io/package/fastify-nuxt

## Dependencies (3)

- [nuxt](https://npm.io/package/nuxt.md) ^1.0.0-rc11
- [fastify](https://npm.io/package/fastify.md) ^0.30.3
- [fastify-plugin](https://npm.io/package/fastify-plugin.md) ^0.1.1

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.12 (latest) — 2017-10-30
- 1.0.11 — 2017-10-30
- 1.0.10 — 2017-10-30
- 0.0.9 — 2017-10-30
- 0.0.8 — 2017-10-30
- 0.0.6 — 2017-10-30
- 0.0.5 — 2017-10-30
- 0.0.4 — 2017-10-30
- 0.0.3 — 2017-10-30
- 0.0.2 — 2017-10-30
- 0.0.1 — 2017-10-30

## README

# fastify-nuxt
[FastifyJS](https://www.fastify.io/) plugin work with [NuxtJS](https://nuxtjs.org/)

## install
```bash
npm install fastify-nuxt --save
```

## Usage
```javascript
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`
```javascript
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](https://nuxtjs.org/guide/directory-structure) .
```html
<!--  pages/index.vue -->
<template>
  <div>
    <h3>Home</h3>
    <nuxt-link to="/about">About</nuxt-link>
  </div>
</template>
```

---
_Source: https://npm.io/package/fastify-nuxt · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
