All Projects → TheNoim → fastify-vue

TheNoim / fastify-vue

Licence: MIT license
A nuxt.js fastify plugin

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects

Projects that are alternatives of or similar to fastify-vue

now-nuxt
A Now v2 Nuxt builder
Stars: ✭ 25 (-7.41%)
Mutual labels:  nuxt, nuxtjs
nuxt-gsap-module
GSAP module for Nuxt.js
Stars: ✭ 183 (+577.78%)
Mutual labels:  nuxt, nuxtjs
Nuxt Netlify Cms Module
Easy Netlify CMS integration with nuxt.js
Stars: ✭ 195 (+622.22%)
Mutual labels:  nuxt, nuxtjs
Typed Vuex
🏦 A typed store accessor for vanilla Vuex.
Stars: ✭ 193 (+614.81%)
Mutual labels:  nuxt, nuxtjs
fastify-cron
Run cron jobs alongside your Fastify server 👷
Stars: ✭ 32 (+18.52%)
Mutual labels:  fastify, fastify-plugin
solidata frontend
first draft for solidata_frontend : vue+nuxt+vuetify+i18n+axios
Stars: ✭ 15 (-44.44%)
Mutual labels:  nuxt, nuxtjs
Vuemmerce
👉 Responsive ecommerce template 🛒 built with Vue.js and Nuxt.js
Stars: ✭ 223 (+725.93%)
Mutual labels:  nuxt, nuxtjs
Feed Module
Everyone deserves RSS, ATOM and JSON feeds!
Stars: ✭ 182 (+574.07%)
Mutual labels:  nuxt, nuxtjs
fastify-autoroutes
fastest way to map directories to URLs in fastify
Stars: ✭ 70 (+159.26%)
Mutual labels:  fastify, fastify-plugin
fastify-file-upload
Fastify plugin for uploading files
Stars: ✭ 68 (+151.85%)
Mutual labels:  fastify, fastify-plugin
Gtm Module
Google Tag Manager Module for Nuxt.js
Stars: ✭ 187 (+592.59%)
Mutual labels:  nuxt, nuxtjs
fastify-postgres
Fastify PostgreSQL connection plugin
Stars: ✭ 144 (+433.33%)
Mutual labels:  fastify, fastify-plugin
Bael Template
Brutalist Blog theme for Netlify CMS
Stars: ✭ 187 (+592.59%)
Mutual labels:  nuxt, nuxtjs
zksync-dapp-checkout
zkCheckout — trustable permissionless DeFi payment gateway. Brand new zkSync dApp w/t all L2 perks: fast&cheap transfers / simple&quick withdrawal
Stars: ✭ 37 (+37.04%)
Mutual labels:  nuxt, nuxtjs
Bootstrap Vue
BootstrapVue provides one of the most comprehensive implementations of Bootstrap v4 for Vue.js. With extensive and automated WAI-ARIA accessibility markup.
Stars: ✭ 13,603 (+50281.48%)
Mutual labels:  nuxt, nuxtjs
Nuxt Shopify
🛍 Seamless Shopify Buy SDK integration with Nuxt.js.
Stars: ✭ 210 (+677.78%)
Mutual labels:  nuxt, nuxtjs
Press
Minimalist Markdown Publishing for Nuxt.js
Stars: ✭ 181 (+570.37%)
Mutual labels:  nuxt, nuxtjs
Python Module
Write Nuxt.js applications using Python! [Experimental]
Stars: ✭ 181 (+570.37%)
Mutual labels:  nuxt, nuxtjs
Redirect Module
No more cumbersome redirects!
Stars: ✭ 235 (+770.37%)
Mutual labels:  nuxt, nuxtjs
fastify-accepts
Add accepts parser to fastify
Stars: ✭ 51 (+88.89%)
Mutual labels:  fastify, fastify-plugin

fastify-vue-plugin

A nuxt.js fastify plugin

NpmLicense David GitHub package version NPM Link Greenkeeper badge

Installation

yarn add fastify-vue-plugin
# or if you use npm
npm i fastify-vue-plugin --save

Usage

const fastify = require('fastify')();

fastify.register(require('fastify-vue-plugin'), {
    config: require('./nuxt.config.js'),
    attachProperties: ['session'] // Attach properties from the fastify request object to the nuxt request object. Example use case: Attach session store to nuxt context.
}).after(e => {
    if (e) console.trace(e);
    fastify.nuxt('/'); // is equals: index.vue
    fastify.nuxt('/dashboard');
    // add all your nuxtjs routes
    // make sure there are added in the after function
    
    // use params
    fastify.nuxt('/product/:id');
});

// other stuff/routes

fastify.listen(1337, '0.0.0.0' , (e) => {
    if (e) console.trace(e);
    console.warn('http://0.0.0.0:1337');
});

Notice

This plugin is inspired by the fastify-react plugin.

License

The MIT License (MIT)

Copyright (c) 2018 Nils Bergmann

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].