mirror of
https://github.com/journey-ad/Moe-Counter.git
synced 2025-02-25 22:38:08 +01:00
82 lines
1.8 KiB
Markdown
82 lines
1.8 KiB
Markdown
# Moe-Counter
|
|
|
|
多种风格可选的萌萌计数器
|
|
|
|

|
|
|
|
<details>
|
|
<summary>More theme</summary>
|
|
|
|
##### 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
|
|
|
|
```shell
|
|
$ git clone https://github.com/journey-ad/Moe-Counter.git
|
|
$ cd Moe-Counter
|
|
$ yarn install
|
|
|
|
$ yarn start
|
|
```
|
|
|
|
### Configuration
|
|
|
|
`config.yml`
|
|
|
|
```yaml
|
|
app:
|
|
port: 3000
|
|
|
|
db:
|
|
type: sqlite # sqlite or mongodb
|
|
```
|
|
|
|
If you use mongodb, you need to specify the environment variable `DB_URL`
|
|
|
|
```shell
|
|
# eg:
|
|
export DB_URL=mongodb+srv://account:passwd@***.***.***.mongodb.net/db_count
|
|
```
|
|
|
|
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"
|
|
```
|
|
|
|
## Credits
|
|
|
|
* [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)
|
|
|
|
## License
|
|
|
|
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fjourney-ad%2FMoe-Counter?ref=badge_large)
|