Nuxt is an intuitive and extendable way to create type-safe, performant and production-grade full-stack web apps and websites with Vue 3.
Go to file
Sébastien Chopin 8ab135af55 Prototype 0.1.0 working
Alpha 0.1.0
2016-11-07 02:34:58 +01:00
bin Prototype 0.1.0 working 2016-11-07 02:34:58 +01:00
examples Prototype 0.1.0 working 2016-11-07 02:34:58 +01:00
lib Prototype 0.1.0 working 2016-11-07 02:34:58 +01:00
pages Prototype 0.1.0 working 2016-11-07 02:34:58 +01:00
test Prototype 0.1.0 working 2016-11-07 02:34:58 +01:00
.eslintrc.js Prototype 0.1.0 working 2016-11-07 02:34:58 +01:00
.gitignore Prototype 0.1.0 working 2016-11-07 02:34:58 +01:00
index.js Prototype 0.1.0 working 2016-11-07 02:34:58 +01:00
package.json Prototype 0.1.0 working 2016-11-07 02:34:58 +01:00
README.md Prototype 0.1.0 working 2016-11-07 02:34:58 +01:00

WIP: NOT WORKING right now!

nuxt.js

A minimalistic framework for server-rendered Vue applications (completely inspired from Next.js)

How to use

Install it:

$ npm install nuxt --save

and add a script to your package.json like this:

{
  "scripts": {
    "start": "nuxt"
  }
}

After that, the file-system is the main API. Every .vue file becomes a route that gets automatically processed and rendered.

Populate ./pages/index.vue inside your project:

<template>
  <h1>Hello {{ name }}!</h1>
</template>

<script>
export default {
  data: () => ({
    name: 'world'
  })
}
</script>

and then just run npm start and go to http://localhost:3000

So far, we get:

  • Automatic transpilation and bundling (with webpack and babel)
  • Hot code reloading
  • Server rendering and indexing of ./pages
  • Static file serving. ./static/ is mapped to /static/
  • Config file nuxt.config.js

To see how simple this is, check out the sample app - nuxtgram