USAGE
- ork
$ ork
- Install
$ sudo npm install ork -g
- Generate
$ ork-generate -m path -t [module]
- Run
$ ork -c file.[yml, yaml, json] -m path
- Open
http://localhost:3000/moduleName Launch
CREATE A MODULE REST
- Folder structure
$ my-project config.json my-module - package.json - routes - app.js
- config.json
"name" : "my-project" "modules" : "my-module"
- package.json
"name" : "my-module" "dependencies" : {}
- routes/app.js
const Router = ;const router = ; router; moduleexports = router;
- Run
$ ork -c config.json -m ./
- Open