1
0
mirror of https://github.com/fumiama/CMoe-Counter.git synced 2024-09-23 19:08:24 +02:00
Moe-counter的C版本
Go to file
2024-06-20 17:41:25 +09:00
.github/workflows add dockerfile 2022-05-20 14:52:19 +08:00
assets feat: add theme mobius 2024-06-20 17:41:25 +09:00
.gitignore fix overlay 2023-07-08 20:25:33 +08:00
CMakeLists.txt fix(compile): 'for' loop initial declarations are only allowed in C99 mode 2024-04-12 23:04:33 +09:00
cmoe.c feat: add theme mobius 2024-06-20 17:41:25 +09:00
cmoe.h feat: add theme mobius 2024-06-20 17:41:25 +09:00
Dockerfile fix(compile): "/usr/local/bin/cmoe": not found 2024-04-12 22:55:42 +09:00
editor.c fix overlay 2023-07-08 20:25:33 +08:00
LICENSE Update LICENSE 2021-06-11 15:11:08 +08:00
README.md feat: add theme mobius 2024-06-20 17:41:25 +09:00
test.c fix overlay 2023-07-08 20:25:33 +08:00
test.sh fix overlay 2023-07-08 20:25:33 +08:00

CMoe-Counter

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

More theme
moebooru(mb)

moebooru

rule34(r34)

Rule34

gelbooru(gb)

Gelbooru

nixie(nix)

Nixie Tube

mobius(mbs)

Nixie Tube

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

  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/nix/mbs)

That's all.

Credits