Skip to content

nuxt-community/express-template

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

Adding Express as a local dependency to avoid needing it installed globally.
a075cd2

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
api
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Nuxt.js with Express

ExpressJS + Nuxt.js =

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

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