fumiama / CMoe-Counter

Moe-counter的C版本

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CMoe-Counter

多种风格可选的萌萌计数器的简易C语言版本

More theme
moebooru(mb)

moebooru

rule34(r34)

Rule34

gelbooru(gb)

Gelbooru

Usage

Follow the instructions in that repo to install it.

2. Install simple-protobuf

Follow the instructions in that repo to install it.

3. Install CMoe

git clone https://github.com/fumiama/CMoe-Counter.git
cd CMoe-Counter
mkdir build
cd build
cmake ..
make
# make install

4. Copy files to web root

  1. Copy favicon.ico, index.html, style.css and the compiled binary cmoe (in the build folder) into the same folder.
  2. Run simple-http-server by the command
simple-http-server -d port folder

5. Enjoy it!

You can change token and datafile by passing env TOKEN & DATFILE.

API

The API of CMoe is simpler than Moe-counter

1. Register

http://yourdomain/cmoe?name=yourname&reg=token

2. Refer

http://yourdomain/cmoe?name=yourname(&theme=mb/mbh/gb/gbh/r34)

That's all.

Credits

About

Moe-counter的C版本

License:GNU General Public License v3.0


Languages

Language:C 96.6%Language:HTML 2.4%Language:Dockerfile 0.6%Language:Shell 0.2%Language:CMake 0.2%Language:CSS 0.0%