sulaiman

command module
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2020 License: MIT Imports: 11 Imported by: 0

README

Sulaimān

A simple photo uploader.

シンプルな画像アップローダーです。スライマーンと読んでください。

Install

Github からクローンして

git clone https://github.com/takatoh/sulaiman.git

依存ライブラリをインストールします。

dep ensure

go build します。

go build

Usage

ビルドしてできた実行ファイルと 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

License

MIT License

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL