nuxt-community / express-template

Starter template for Nuxt 2 with Express.

Home Page:https://codesandbox.io/s/github/nuxt-community/express-template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nuxt 2 with Express

ExpressJS + Nuxt 2 = ⚡

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

Nuxt 3

Nuxt 3 is powered by unjs/h3 which has a compatible API with Express and is much faster with the ability to run in Workers (read more about it).

This is why this template won't be migrated to Nuxt 3.

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

About

Starter template for Nuxt 2 with Express.

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


Languages

Language:Vue 68.6%Language:JavaScript 31.4%