moon-counter

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2023 License: MIT Imports: 7 Imported by: 0

README ΒΆ

Moon-Counter

English | δΈ­ζ–‡

A fast, simple & easy-to-use webpage visitor counter, but not only limited to websites.

With a visual admin panel, put Moon-Counter at every corner

πŸš€ Fast and Simple
πŸŽ‰ Easy Deployment

Run counter server with only one binary file, zero dependency. No annoying complex installation

πŸ”’ Secure CORS Support

Make it hard for strangers to use your counter service without permisson to tally for them

🌟 SQLite Database.

Reeeallly easy to control and move

Image Counter

Common Method

Make sure id argument is unique for every webpage

# You can use this in Github Profile
![](https://yoursite.com/counter/img?id=uniqueID)

<img src="//yoursite.com/counter/img?id=uniqueID"></img>
Secure CORS

Unique id arg is automatically handled

If cors is on in the config file, server will check whether the request origin is vaild, and return cors resources. In this case, you should only use image counter in this way

<script src="//yoursite.com/moon-counter/js/img"></script>
<img id="moon-counter-img"></img>

Text Counter

Add the following code to where you wanna place a text counter.

<script src="//yoursite.com/moon-counter/js"></script>
<span id="moon-counter"></span>

Self Host

Download the compressed file in Release Page.

1.Decompress

$ tar -xf moon-counter.tar.gz

2.Adjust the config.yaml

nano config.yaml

3.Run

$ moon-counter

For more details and configuration help, Please visit my blog

Credits

License

MIT

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Directories ΒΆ

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL