One platform's server-side microservice generator with GraphQL and REST support.
npm run cli-microservice
- Run this generator inside your
/packages
directory_. - Enter the name of your microservice.
- Choose whether you're building a microservice using REST or GraphQL.
- Choose if you need MongoDB support.
- Enter the name of the author.
- Enter the email of the author.
- If you selected GraphQL, a directory will be created with <microservice-name>-service and for REST it will be <microservice-name>-integration.
- cd into your microservice directory
- copy your certificates to the
certs/
directory. - Run
npm test
to run default tests. - Run
npm build:dev
to generate a build for dev env andnpm build
for production build/ - Run
npm start:dev
to run your microservice for dev env andnpm start
for production env.