Skip to content

1-Platform/op-microservice-generator

Repository files navigation

One Platform Microservice Generator

One platform's server-side microservice generator with GraphQL and REST support.

Installation Instructions

npm run cli-microservice

Usage

  1. Run this generator inside your /packages directory_.
  2. Enter the name of your microservice.
  3. Choose whether you're building a microservice using REST or GraphQL.
  4. Choose if you need MongoDB support.
  5. Enter the name of the author.
  6. Enter the email of the author.
  7. If you selected GraphQL, a directory will be created with <microservice-name>-service and for REST it will be <microservice-name>-integration.

After Steps

  1. cd into your microservice directory
  2. copy your certificates to the certs/ directory.
  3. Run npm test to run default tests.
  4. Run npm build:dev to generate a build for dev env and npm build for production build/
  5. Run npm start:dev to run your microservice for dev env and npm start for production env.

About

A generator for One Platform Microservices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published