$ wget -qO- https://get.docker.com/ | sh Warning: "docker" or "lxc-docker"command appears to already exist. Please ensure that you do not already have docker installed. You may press Ctrl+C now to abort this process and rectify this situation. + sleep 20
$ cd ~/node_apps/sane-spike/server $ sudo npm i balderdashy/sails-hook-dev --save sudo npm i balderdashy/sails-hook-dev --save sails-hook-dev@1.0.0 node_modules/sails-hook-dev ├── pretty-bytes@1.0.4 (get-stdin@4.0.1, meow@3.1.0) └── fs-extra@0.16.5 (jsonfile@2.0.0, graceful-fs@3.0.6, rimraf@2.3.2)
アプリのディレクトリに移動してモデルとコントローラーを作成します。
$ cdcd ~/node_apps/sane-spike $ sudo sane generate resource user name:string age:number info: Created a new model ("User") at api/models/User.js! info: Created a new controller ("user") at api/controllers/UserController.js! version: 0.2.3 Could not find watchman, falling back to NodeWatcher for file system events. Visit http://www.ember-cli.com/#watchman for more info. installing create app/models/user.js installing create tests/unit/models/user-test.js installing create app/routes/user.js create app/templates/user.hbs installing create tests/unit/routes/user-test.js