mirror of
https://github.com/fumiama/CMoe-Counter.git
synced 2026-06-05 02:00:24 +08:00
CMoe-Counter
多种风格可选的萌萌计数器的简易C语言版本
Usage
1. Install simple-http-server
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
- Copy
favicon.ico,index.html,style.cssand the compiled binarycmoe(in thebuildfolder) into the same folder. - Run
simple-http-serverby 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®=token
2. Refer
http://yourdomain/cmoe?name=yourname(&theme=mb/mbh/gb/gbh/r34)
That's all.
Credits
- Moe-counter
- moebooru
- rule34.xxx NSFW
- gelbooru.com NSFW
- Icons8
Languages
C
97.3%
HTML
1.9%
Dockerfile
0.4%
Shell
0.2%
CMake
0.2%