Universal Javascript Framework?
Isomorphic Javascript?
Universal Application?
The VueJS Framework?
.
.
.
tldr: framework that runs javascript on both client and serverside, good for SSR 😉
1. Single Page Application (SPA)
2. Server Side Render (SSR)
3. Static (JAM Stack)
Single Page App
❓
Server Side Render
Static, think JAM Stack 🤔
>Bash
❓
1. Routing
2. Layouts
3. Vuex (optional)
4. Middleware (optional)
5. Plugins (optional)
6. Server (optional)
7. Test (optional??? 😅)
8. Modules (optional)
Part of NuxtJS life cycle hook that enables server side rendering!!!
asyncData & fetch
vuejs render
Resuable layout to be shared among multiple pages.
Error page is the template that get display when client side run into an unhanded exception.
Resuable layout to be shared among multiple pages.
Error page is the template that get display when client side run into an unhanded exception.
Example vue-rx
shareable function that you run before a page is render
Extends NuxtJS application
modules: [ '@nuxtjs/auth' ],
nuxt.config.js
your vue page that needs to put behind auth
by putting auth middleware, the page will check if user is logged in first before rendering!
https://github.com/topics/nuxt-module