express-template icon indicating copy to clipboard operation
express-template copied to clipboard

Starter template for Nuxt 2 with Express.

Nuxt.js with Express

ExpressJS + Nuxt.js = :zap:

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

Installation

This is a template project, click on the green button "Use this template" at the top of this page and get started with GitHub :sparkles:

One you cloned your repository, install the dependencies with:

yarn install # or npm install

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