A working example of using nuxt with express and prismic io. Prismics documentation and examples are inconsistent, but this works for setting up the basics.
Make sure to use a version of vue-cli >= 2.1 (vue -V).
- The
routes
directory is calledapi
.
Command | Description |
---|---|
npm run dev | Start ExpressJS server in development with Nuxt.js in dev mode (hot reloading). Listen on http://localhost:3000. |
npm run build | Build the nuxt.js web application for production. |
npm start | Start ExpressJS server in production. |