A command line cli developed by hubspire for npm workspace.
npm install @hubspire/hubspire-cliThis 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.
Hubspire CLI requires Node.js v16+ to run.
Install the dependencies and devDependencies and start the CLI.
``sh`
cd hubspire-cli
npm i
npm run publish:local
#### Available commands
For npm workspace generation:
`sh`
hsc create:workspace
For application generation in NPM workspace:
`sh`
hsc create:app
hsc create:app
hsc create:app
hsc create:app
hsc create:app
For library generation in NPM workspace:
`sh`
hsc create:lib
For CRUD generation in apollo graphql server application:
`sh`
hsc create:crud
For relationship generation in apollo graphql server application:
`sh`
hsc create:relation
For generating entire workspace using db design as json format:
`sh`
hsc generate
For seeding your mongoDB data for your docker mongo image
`sh``
hsc seed:data
hsc seed:data
MIT
Free Software, Hell Yeah!