sails と ember を組み合わせた sane-stack
イシュー
- Sailsの管理画面を blueprintで実装したいとおもって調べていたところ、既に sailsとember を使った sane という npm パッケージが存在していた。
参考
- Sane Stack – The JS Fullstack to get you instantly productive.
- sane/README.md at master · artificialio/sane · GitHub
- https://answersresource.wordpress.com/2014/08/30/sails-js-and-ember-js-nested-associations/
- artificialio/sane · GitHub
- mphasize/sails-ember-blueprints · GitHub
- sails-ember-blueprints
- Getting started with the Sane stack - Installation and CRUD » { 100PercentJS }
- mgenev/how-to-sane · GitHub
- sane の使い方
- What backend for simple CRUD? - Ember.JS
- mphasize/sails-generate-ember-blueprints · GitHub
- sails-generate-ember-blueprints
- sails.js - how to call default blueprint actions in a custom overridden one? - Stack Overflow
- blueprint のoverride方法
- javascript - How to extend the functionality of blueprints in Sails.js without overriding the whole blueprint? - Stack Overflow
- blueprint の 拡張
deploy
参考
- Sane Stack – The JS Fullstack to get you instantly productive.
- ember.js - How to use ember-cli with custom server and deploy it to Heroku? - Stack Overflow
ember build command
- README.md に書いてある
* `ember build` (development) * `ember build --environment production` (production)] ember build <options...> Builds your app and places it into the output path (dist/ by default). --environment (String) (Default: development) aliases: -e <value>, -dev (--environment=development), -prod (--environment=production) --output-path (Path) (Default: dist/) aliases: -o <value> --watch (Boolean) (Default: false) aliases: -w $ ember build --environment production --output-path ../server/assets
REST Adapter のhostプロパティ
参考
sane up 後に、client のサービスにアクセスすると、sails のレスポンスが返る(まっしろだけど)
http://localhost:4200/api/v1/users