Giter VIP home page Giter VIP logo

moleculer-cli's Introduction

Moleculer logo

Command line tool for Moleculer framework NPM version

Features

  • initialize new projects from templates
  • connect to a system
  • start a local broker with REPL

Install

npm install -g moleculer-cli

Usage

Initialize new project

Init a new project for a module

moleculer init module my-module

Init a new Moleculer project

moleculer init project my-first-project

Official templates

Start a broker

Start a broker locally This command starts a new ServiceBroker locally and switches to REPL mode.

moleculer start

Start a broker and connect to a transporter The following commands start a new ServiceBroker, connect to a transporter server and switch to REPL mode.

# With TCP transporter
moleculer connect 

# With NATS transporter (you need to install NATS lib globally with `npm i nats -g` command)
moleculer connect nats://localhost:4222

# With Redis transporter (you need to install Redis lib globally with `npm i ioredis -g` command)
moleculer connect redis://localhost

# With MQTT transporter (you need to install MQTT lib globally with `npm i mqtt -g` command)
moleculer connect mqtt://localhost

Documentation

Please read our documentation on Moleculer site

Credits

The moleculer-cli project init command is based on vue-cli project.

Contribution

Please send pull requests improving the usage and fixing bugs, improving documentation and providing better examples, or providing some testing, because these things are important.

License

Moleculer-cli is available under the MIT license.

Contact

Copyright (c) 2022 MoleculerJS

@moleculerjs @MoleculerJS

moleculer-cli's People

Contributors

a06kin avatar andremaz avatar bbmarkus avatar ccampanale avatar devalexandre avatar disce-omnes avatar faeron avatar icebob avatar karnith avatar keawade avatar leestex avatar ngraef avatar slinkardbrandon avatar zacbraddy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.