$ brew install python --framework
$ git clone git@github.com:mixi-adtech/facebook-tool.git
$ cd facebook-tool
$ pip install virtualenv
参考:Flaskのドキュメント
仮想環境の構築
$ virtualenv env
仮想環境をアクティベートする
$ source env/bin/activate
必要なパッケージをまとめてインストール
pip install -r config/requirements.txt
config/config.json.example
に有効な値を入れる
configは複数の広告アカウントに対応出来る仕組みとなっている
config/config.json.example
を config/config.json
にリネーム
$ mv config.json.example config.json
立ち上げる
$ python app.py
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
* Restarting with stat
...
http://127.0.0.1:5000
にアクセスすると、管理ツールにアクセスできる。
config/requirements.txt
を更新する。
pip freeze -l > config/requirements.txt