Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.98 KB

README.md

File metadata and controls

49 lines (37 loc) · 1.98 KB

generator-sails-diy

build status Coverage Status gitter Dependency Status

sails yeoman generator

Getting Started

  • npm install -g yo (Make sure you have yo installed)
  • npm set registry https://registry.npmjs.org/ (Make sure you npm registry is official)
  • npm install -g generator-sails-diy (Install the generators)
  • mkdir my-project && cd $_ (Create project directory and cd into it)
  • yo sails-diy (Run sails-diy generator)
  • sails lift (To run project)
  • npm test (To test)
  • npm run coverage (To test and make coverage report)

Generator Command

  • yo sails-diy:controller Test(Create a controller in your app)
  • yo sails-diy:model Ticket --rest(Create a model in your app)
  • yo sails-diy:cron cron1 cron2(Create a cron in your app)
  • yo sails-diy:service ping(Create a service in your app)
  • yo sails-diy:policy auth(Create a policy in your app)
  • npm start(Compose your API and run)
  • npm test(Run unit test in your project)

TODO

  • install adapter that version is Assign
  • multiply adapter chooser
  • use "request-info" package in this project

License

MIT