decentraleyes-scaffolding v0.0.2
decentraleyes-scaffolding
The decentraleyes-scaffolding CLI application
Getting Started
npm install -g decentraleyes-scaffolding
will install the dscaf command line application to your Node.js global path. To update to the latest version, simply repeat this command in a terminal.
Running dscaf
dscaf
and pres Enter. You will be presented with a familiar Node.js command line, but that's not the Node.js REPL. That is dscaf waiting for your command(s).
microservice dcdata|nodata (default: dcdata)
The microservice
command scaffolds up a new decentraleyes microservice with a MongoDB database model. Answer all questions truthfully, and your microservice module is about a minute away from existing.
- Create a new directory for your module
- cd into that directory
- Run
dscaf
in your new/empty module directory
When finished, your empty directory should be populated with the following files:
. ├── .gitignore ├── i18n │ └── en-us.json ├── .jshintrc ├── logs ├── package.json ├── service.js ├── service-options.json └── service-tests.js