Skip to content

leoliew/generator-sails-diy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

sails yeoman generator

Resources

License

Stars

Watchers

Forks

Packages

No packages published