多种风格可选的萌萌计数器的简易C语言版本
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.
git clone https://github.com/fumiama/CMoe-Counter.git
cd CMoe-Counter
mkdir build
cd build
cmake ..
make
# make install
- Copy
favicon.ico
,index.html
,style.css
and the compiled binarycmoe
(in thebuild
folder) into the same folder. - Run
simple-http-server
by the command
simple-http-server -d port folder
You can change token and datafile by passing env TOKEN
& DATFILE
.
The API of CMoe is simpler than Moe-counter
http://yourdomain/cmoe?name=yourname®=token
http://yourdomain/cmoe?name=yourname(&theme=mb/mbh/gb/gbh/r34)
That's all.
- Moe-counter
- moebooru
- rule34.xxx NSFW
- gelbooru.com NSFW
- Icons8