Skip to content
master
Go to file
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Jul 20, 2020
Jan 24, 2017

README.md

Nuxt.js with Express

ExpressJS + Nuxt.js =

Live Demo: https://codesandbox.io/s/github/nuxt-community/express-template/tree/demo

Installation

This is a project template for vue-cli.

vue init nuxt-community/express-template <project-name>
cd <project-name> # move to your project
npm install # or yarn install

Make sure to use a version of vue-cli >= 2.1 (vue -V).

ExpressJS Changes

  • There is a api directory with the root of your api server.
  • The routes directory is called api/routes.

Commands

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.

Examples

Documentation

Licenses

You can’t perform that action at this time.