0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

# MeteorのDDPを使ってテンプレートとAPIを切り離す

0
Posted at

https://github.com/endows/meteor-ddp
Meteorは速攻でCollectionからソーシャル認証までを作れるすぐれものです。テンプレートエンジンもangularからreactまで自由に使えます。
使えるんですが・・・angualr-meteorを経験してangularとmeteorが織りなす魔術コードに吐き気を催してしまいました。

firebaseのようにすっきりとコードを分離できれば嬉しいなと思って作ってみました。詳細はこのレポジトリをみてください。

環境

Meteor
Asteroid
Webpack

注意事項

Meteor-DDPクライアントのAsteroidですが、デフォルトではWebpackから使えません。npm install asteroindはNode.js専用に作られてるみたいです。bowerバージョンなら使えそうですが。

npmから使いたかったのでnpmレポジトリを作りました。

npm install asteroid.browser

でインストールしてください。
Webpackからインストールする際は

var asteroid = require('asteroid.browser')

です。
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?