1
0
mirror of https://github.com/fumiama/CMoe-Counter.git synced 2024-11-27 23:20:49 +01:00
Moe-counter的C版本
Go to file
2021-06-10 12:03:43 +08:00
assets 完善index 2021-06-08 18:04:52 +08:00
.gitignore init 2021-06-07 21:18:19 +08:00
CMakeLists.txt Update CMakeLists.txt 2021-06-08 20:02:48 +08:00
cmoe.c 增加文件锁 2021-06-10 12:03:29 +08:00
cmoe.h 加入调试信息 2021-06-08 13:11:58 +08:00
LICENSE Initial commit 2021-06-07 20:59:42 +08:00
README.md Update README.md 2021-06-09 13:53:47 +08:00

CMoe-Counter

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

More theme
moebooru(mb)

moebooru

rule34(r34)

Rule34

gelbooru(gb)

Gelbooru

Demo

Usage

1. Install simple-http-server

Follow the instructions in this repo to install it.

2. Install simple-protobuf

Follow the instructions in this 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 into the same folder.
  2. Run simple-http-server by the command
simple-http-server -d port folder

5. Enjoy it!

API

The API of CMoe is simpler than Moe-counter

1. Register

token is defined in cmoe.h

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

2. Refer

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

That's all.

Credits