@hubspire/hubspire-cli

1.4.9 • Public • Published

Hubspire CLI

This CLI tool, built with Node.js, enables the generation of an NPM-based workspace. With this workspace, you can create Apollo GraphQL server-based applications, Node.js libraries, and serverless applications. The CLI also provides CRUD generation capabilities, allowing you to generate GraphQL queries and mutations with MongoDB as the data source. Its primary objective is to simplify the process of building a microservice architecture using Apollo GraphQL federation techniques. The below diagram shows the architecture of our microservice.

Image description

Installation

Hubspire CLI requires Node.js v16+ to run.

Install the dependencies and devDependencies and start the CLI.

cd hubspire-cli
npm i
npm run publish:local

Available commands

For npm workspace generation:

hsc create:workspace <workspace-name>

For application generation in NPM workspace:

hsc create:app <app-name> --type subgraph
hsc create:app <app-name> --type serverless
hsc create:app <app-name> --type gateway
hsc create:app <app-name> --type express

For library generation in NPM workspace:

hsc create:lib <lib-name>

For CRUD generation in apollo graphql server application:

hsc create:crud <app-name> --entity <module-name>

For seeding your mongoDB data for your docker mongo image

hsc seed:data <mongo-cluster-url> --mode export
hsc seed:data <mongo-cluster-url> --mode import

License

MIT

Free Software, Hell Yeah!

Readme

Keywords

Package Sidebar

Install

npm i @hubspire/hubspire-cli

Weekly Downloads

17

Version

1.4.9

License

MIT

Unpacked Size

412 kB

Total Files

237

Last publish

Collaborators

  • hosam-hsm
  • sarangraj48
  • anoop-benzier
  • sijeesh_hubspire
  • ananthuhub