1
0
mirror of https://github.com/fumiama/CMoe-Counter.git synced 2025-02-08 23:09:33 +01:00
源文雨 2c537be0ad init
2021-06-07 21:18:19 +08:00
2021-06-07 21:18:19 +08:00
2021-06-07 21:18:19 +08:00
2021-06-07 21:18:19 +08:00
2021-06-07 21:18:19 +08:00
2021-06-07 21:18:19 +08:00
2021-06-07 20:59:42 +08:00
2021-06-07 21:18:19 +08:00

Moe-counter

多种风格可选的萌萌计数器

Moe-counter

More theme
moebooru(mb)

moebooru

rule34(r34)

Rule34

gelbooru(gb)

Gelbooru

Demo

https://count.getloli.com

Usage

Install simple-http-server

Follow the instructions in this repo to install it.

Install CMoe

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

Copy files

  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

Enjoy it!

API

The API of CMoe is simpler than Moe-counter

Register

token is defined in cmoe.h

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

Refer

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

That's all.

Credits

Description
Moe-counter的C版本
Readme GPL-3.0 1.2 MiB
Languages
C 97.3%
HTML 1.9%
Dockerfile 0.4%
Shell 0.2%
CMake 0.2%