One platform's server-side microservice generator with GraphQL and REST support.
npm run cli-microservice- Run this generator inside your
/packagesdirectory_. - 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 testto run default tests. - Run
npm build:devto generate a build for dev env andnpm buildfor production build/ - Run
npm start:devto run your microservice for dev env andnpm startfor production env.