Sign inSign up

dwgao/generator-asf

By dwgao

Updated over 5 years ago

Image
0

1.6K

dwgao/generator-asf repository overview

generator-asf NPM version Build Status Coverage percentage

Generator for microservice.

Installation

install Yeoman and generator-asf using npm (we assume you have pre-installed node.js).

npm install -g generator-asf

Then generate your new microservice:

asf create-service

Or generate your new gateway:

asf create-gateway

Persistent configuration

asf create-service -c asf.json

File asf.conf will be generated with all options. Execute the same command will run with options in it.

Run in docker

generate microservice:

docker run --rm -it \
	-v $PWD:/yo dwgao/generator-asf \
	asf create-service

generate gateway:

docker run --rm -it \
	-v $PWD:/yo dwgao/generator-gateway \
	asf create-gateway

with persistent configuration:

docker run --rm -it \
	-v ~/conf:/conf \
	-v $PWD:/yo dwgao/generator-asf \
	asf create-service -c /conf/asf.conf

Getting To Know Yeoman

  • Yeoman has a heart of gold.
  • Yeoman is a person with feelings and opinions, but is very easy to work with.
  • Yeoman can be too opinionated at times but is easily convinced not to be.
  • Feel free to learn more about Yeoman.

License

Apache-2.0 © gaodawei

Tag summary

Content type

Image

Digest

Size

87.2 MB

Last updated

almost 6 years ago

docker pull dwgao/generator-asf