Generator for microservice.
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
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.
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
Apache-2.0 © gaodawei
Content type
Image
Digest
Size
87.2 MB
Last updated
almost 6 years ago
docker pull dwgao/generator-asf