amutake / satsukita-andon.com

satsukita-andon.com
http://satsukita-andon.com
1 stars 1 forks source link

ver5.0 へのアイデア #75

Open amutake opened 9 years ago

amutake commented 9 years ago

ver5.0に向けて

2015年終わりから2016年はじめくらいに完成させたい。ver4.1でも安定して動いているのでそんなに急いでいない。

ちなみに今までのバージョン履歴はこんなかんじ

今後は semver でちゃんとバージョンをつけてタグうったりしていきたい。 次のバージョンを v1.0 としてもいいかも。

アーキテクチャ

今回もモダンな Web アーキテクチャの実験台にする。

より洗練させる。

ユーザーはほとんどスマホなので、スマホでも見やすくする。

開発方法

コンポーネントごとに徐々に変えていける感じだとモチベーションを保てる。

amutake commented 9 years ago

現時点 (2014/11/21) では、

言語

もしくは、

DB

未定。パフォーマンス重視。分散は、マシンを1ノードしか使わない気がするのでなくてOK?

NewSQL とか?

クライアントサイド

flow + React でやってみたい。パッケージマネージャは bower、ビルドは Gulp

amutake commented 9 years ago

http://techlife.cookpad.com/entry/2014/09/24/092223 みたいに Elasticsearch の more like thid 機能を使って、似た行灯を見つけたりとか。

amutake commented 9 years ago

Rust けっこう難しいので、Scala でもいいかもしれない。

amutake commented 9 years ago

各クラスの資料 (SketchUp や動画など) は Howto ではなくギャラリーのクラスページに載せる。(クラスページは写真だけではなくなる)

行灯の点数も載せたい

amutake commented 9 years ago

frontend

デザイン

参考にしたいサイト

mobile friendly

Framework

mizchi/arda を使ってみたい

CSS Framework

Gallery / LightBox

fresco いいけど、重いので変えたい。あとぶっ壊れそうなので jQuery 依存にあんまりしたくない

これらを参考にしながら React コンポーネントを自作しても良さそう

ビルド

Webpack (+ Gulp)

管理画面

管理画面は通常画面とは違い管理画面っぽくする。管理画面っぽいほうが操作性上がりそうなのと特別感ある。

Isomorphic

にする

amutake commented 9 years ago

機能要件

要検討

amutake commented 9 years ago

Server side

言語

以下のライブラリがあるもの

amutake commented 9 years ago

organization にしてリポジトリを分割するようにしてもいい。 バージョンが上がるので特にリポジトリの移行もしなくてよさそう。 バージョンも0.1から始めてもいいかも。

amutake commented 9 years ago

Authentication

OAuth は当分なし。特にアプリケーションがどんどん作られるわけでもないし、暇になったらやってもいい程度。 JWT を使ったアクセストークンだけで十分。

  1. sign in
    1. client - credential (username, password) -> server
    2. server - access token (jwt) -> client
    3. client saves the access token into cookie
  2. API call
    1. client - call with access token -> server
    2. verify and extract the access token
    3. if (the access token is valid && not expired) then { return resources with refreshed access token } else { 403 or restricted resources }

思ったけどいちいち refresh したトークンを返すなら有効期限が設定されていないのと同じなので意味ない

amutake commented 9 years ago

Development Flow

  1. API server
    1. access_token filter
    2. API documents
  2. API client library written in JS
  3. replace client
    • the same design
  4. update design
amutake commented 9 years ago

https://github.com/satsukita-andon

amutake commented 8 years ago

権限

メモ