diff options
| author | Fuwn <[email protected]> | 2024-01-19 19:22:22 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-19 19:22:22 -0800 |
| commit | 969daf8ae2dff491a94b8736b60a0df9613d0cb8 (patch) | |
| tree | 97315237003c8215133a2fa6dbf39d16ca156e59 | |
| parent | fix(index): code heights (diff) | |
| download | counter-969daf8ae2dff491a94b8736b60a0df9613d0cb8.tar.xz counter-969daf8ae2dff491a94b8736b60a0df9613d0cb8.zip | |
docs(readme): simplify
| -rw-r--r-- | Readme.md | 77 |
1 files changed, 22 insertions, 55 deletions
@@ -1,82 +1,49 @@ -# Moe-Counter +# ☗ Counter -多种风格可选的萌萌计数器 +> 多种风格可选的萌萌计数器 - +<img src="https://counter.due.moe/get/@counter.github?theme=urushi" width="50%"> -<details> -<summary>More theme</summary> +## Installation -##### asoul - - -##### moebooru - - -##### rule34 - - -##### gelbooru -</details> - -## Demo -[https://count.getloli.com](https://count.getloli.com) - -## Usage - -### Install - -#### Run on Replit - -- Open the url [https://replit.com/@journeyad/Moe-Counter](https://replit.com/@journeyad/Moe-Counter) -- Just hit the **Fork** button -- And hit the **Run** button - -#### Deploying on your own server +### Self-hosting ```shell -$ git clone https://github.com/journey-ad/Moe-Counter.git -$ cd Moe-Counter +$ git clone https://github.com/Fuwn/counter.git +$ cd counter $ yarn install - $ yarn start ``` ### Configuration -`config.yml` - ```yaml +# config.yml + app: - # site: https://count.getloli.com # your website + # site: https://counter.due.moe port: 3000 db: - type: sqlite # sqlite or mongodb + type: sqlite # sqlite, mongodb ``` -If you use mongodb, you need to specify the environment variable `DB_URL` +#### MongoDB -```shell -# eg: -export DB_URL=mongodb+srv://account:passwd@***.***.***.mongodb.net/db_count -``` +Expose a `DB_URL` environment variable -replit can use Secrets, [documentation](https://docs.replit.com/programming-ide/storing-sensitive-information-environment-variables) - -``` -DB_URL="mongodb+srv://account:passwd@***.***.***.mongodb.net/db_count" +```shell +export DB_URL=mongodb+srv://user:passwd@***.***.***.mongodb.net/db_count ``` -## Credits +### Resource Attributions -* [replit](https://replit.com/) * [A-SOUL_Official](https://space.bilibili.com/703007996) -* [moebooru](https://github.com/moebooru/moebooru) -* rule34.xxx NSFW -* gelbooru.com NSFW -* [Icons8](https://icons8.com/icons/set/star) +* [Moebooru](https://github.com/moebooru/moebooru) +* [Rule 34](https://rule34.xxx) (NSFW) +* [Gelbooru](https://gelbooru.com) (NSFW) + +### License -## License +This project is licensed with the [MIT License](LICENSE). -[](https://app.fossa.com/projects/git%2Bgithub.com%2Fjourney-ad%2FMoe-Counter?ref=badge_large) |