Skip to content

Yeoman generator for Seneca node.js micro-services and -clients, with basic boilerplate and packaging.

Notifications You must be signed in to change notification settings

laurisvan/generator-seneca-micro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Seneca Micro-service Generator Build Status

Yeoman generator for Seneca node.js micro-services and -clients, with basic boilerplate and packaging.

Usage

Install generator-seneca-micro:

npm install -g generator-seneca-micro

Make a new directory, and cd into it:

mkdir my-new-project && cd $_

Run yo seneca-micro,

yo seneca-micro         # To create a server + micro-services
yo seneca-micro:service # To create an extra micro-service
yo seneca-micro:client  # To create an extra micro-service

The generator will prompt you further information, such as package name, description and Docker usage.

Generators

Available generators:

  • service: Generates a micro-service Node.js module
  • client: Generates a stub client for a micro-service

Running

Both the server and client can be started by running npm start.

Running with Docker

The generator comes with support with a minimal node.js Docker image. To build and run the container, run:

> docker build -t myserver . # to build the Docker image with name "myserver"
> docker run -d -P myserver  # to start it

License

MIT license

About

Yeoman generator for Seneca node.js micro-services and -clients, with basic boilerplate and packaging.

Resources

Stars

Watchers

Forks

Packages

No packages published