https://stat.ink/ のソースコードです。
IkaLog 等の対応ソフトウェア、または自作のソフトウェアと連携することで Splatoon の戦績を保存し、統計を取ります(予定)。
- PHP 5.5+
- PostgreSQL 9.x
- Node.js (
npm
) - pngcrush
- jpegoptim
- cwebp
https://stat.ink/ は現在次の構成で動作しています。
CentOS 7 の標準 PHP は 5.4.16 です。このバージョンでは動作しません。
-
git clone
しますgit clone https://github.com/fetus-hina/stat.ink.git stat.ink cd stat.ink
-
make
します。なお、初回はデータベースの準備ができていないため途中でエラー停止します。make
-
初回の
make
でconfig/db.php
が作成されています。config/db.php
をお好きな設定に変更するかそのままにするかは自由ですが、その設定で繋がるようにデータベースを設定します。su - postgres createuser -DEPRS statink # パスワードの入力を求められます。 # config/db.php の自動生成パスワードを入力するか、 # パスワードを任意に決めた上で config/db.php を書き換えてください。 createdb --encoding=UTF-8 --owner=statink --template=template0 statink exit
-
もう一度
make
します。今回は成功するはずです。 -
ウェブサーバとかを良い感じにセットアップするときっと動きます。
こういうことをやればよさそうな気がします。何をやっているか確認したあと実行してください。
git fetch --all && \
git merge --ff-only origin/master && \
./composer.phar install && \
make && \
rm -rfv web/assets/* runtime/Smarty/compile/*
stat.ink にデータを投稿する、または取得する API は次のページを参照してください。 API.md
The MIT License (MIT)
Copyright (c) 2015 AIZAWA Hina <hina@bouhime.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.