0.0.1 • Published 2 years ago

hopara-cli v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

hopara-cli

Command line interface to create and update hopara apps.

Getting started

Download the source and run

npm install
npm run build
npm install -g .

Then on the project folder

hopara --help
hopara --save apps
hopara --save queries

Project structure

hopara-cli uses a convention over configuration style for the project structure.

/project-folder
   /queries // data specs
   /apps // apps specs

The IDs for the data and apps are taken from the file names. For instance in the spec my-data.json, my-data is assumed as id, so running hopara save data my-data will save the data specified in my-data.json file.

Options

Usage: hopara options

Options:
  -s, --save <entity...>  save the defined entity, possible entitities: app, data. If followed by an id will restrict the operation E.g.
                          hopara -s data myData)
  -h, --help              display help for command

Login credentials

{
   "endpoints" : {
      "app": "http://localhost:8081/",
      "dataset": "http://localhost:8000/"
   },
   "login" : {
      "email": "email",
      "password": "password"
   }
}