Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.78 KB

README.md

File metadata and controls

47 lines (33 loc) · 1.78 KB

Moleculer logo

Nuxt.js + Express + Moleculer

This is a fork, You can find the original template here

Installation

This is a project template for vue-cli.

vue init ColonelBundy/moleculer-nuxt <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 server directory with the root of your express server.
  • The moleculer.js contains your moleculer-web service & broker options.
  • The server/services directory contains your services.

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.

Backpack

We use backpack to watch and build the application, so you can use the latest ES6 features (module syntax, async/await, etc.).

Documentation

Licenses