A simple photo uploader.
シンプルな画像アップローダーです。スライマーンと読んでください。
GitHub からクローンして
$ git clone https://github.com/takatoh/sulaiman.git
go build
します。
$ go build
ビルドしてできた実行ファイルと config.json.example、それから static をディレクトリごと 適当なディレクトリにコピーします。
confing.json.exmaple を config.json にリネームして、適当に編集します。
{
"site_name" : "Sulaimān",
"host_name" : "localhost:1323",
"port" : 1323,
"Photo_dir" : "photos",
"max_photo_count" : 10000
}
画像保存用のディレクトリを作ります。上の例では photos/img と photos/thumb が必要です。
あとは実行するだけです。
$ ./sulaiman
MIT License