2023-03-06 10:57:41 +00:00
|
|
|
# Moe-Counter
|
2020-08-12 10:03:35 +00:00
|
|
|
|
2024-10-01 12:38:23 +00:00
|
|
|
Multiple styles of Moe-Counters to choose from
|
2020-08-12 10:03:35 +00:00
|
|
|
|
2023-03-06 10:57:41 +00:00
|
|
|
![Moe-Counter](https://count.getloli.com/get/@Moe-counter.github)
|
2020-08-12 10:03:35 +00:00
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>More theme</summary>
|
|
|
|
|
2022-03-03 08:30:34 +00:00
|
|
|
##### asoul
|
|
|
|
![asoul](https://count.getloli.com/get/@demo?theme=asoul)
|
|
|
|
|
2020-08-12 10:03:35 +00:00
|
|
|
##### moebooru
|
|
|
|
![moebooru](https://count.getloli.com/get/@demo?theme=moebooru)
|
|
|
|
|
|
|
|
##### rule34
|
|
|
|
![Rule34](https://count.getloli.com/get/@demo?theme=rule34)
|
|
|
|
|
|
|
|
##### gelbooru
|
|
|
|
![Gelbooru](https://count.getloli.com/get/@demo?theme=gelbooru)</details>
|
|
|
|
|
|
|
|
## Demo
|
|
|
|
[https://count.getloli.com](https://count.getloli.com)
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
### Install
|
|
|
|
|
2023-03-06 10:57:41 +00:00
|
|
|
#### Run on Replit
|
2020-08-12 10:03:35 +00:00
|
|
|
|
2023-03-06 10:57:41 +00:00
|
|
|
- Open the url [https://replit.com/@journeyad/Moe-Counter](https://replit.com/@journeyad/Moe-Counter)
|
2020-08-12 10:03:35 +00:00
|
|
|
- Just hit the **Fork** button
|
|
|
|
- And hit the **Run** button
|
|
|
|
|
|
|
|
#### Deploying on your own server
|
|
|
|
|
|
|
|
```shell
|
2023-03-06 10:57:41 +00:00
|
|
|
$ git clone https://github.com/journey-ad/Moe-Counter.git
|
|
|
|
$ cd Moe-Counter
|
2020-08-12 10:03:35 +00:00
|
|
|
$ yarn install
|
|
|
|
|
|
|
|
$ yarn start
|
|
|
|
```
|
|
|
|
|
2023-03-09 06:34:29 +00:00
|
|
|
### Configuration
|
2020-08-12 10:03:35 +00:00
|
|
|
|
|
|
|
`config.yml`
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
app:
|
2023-04-04 07:01:50 +00:00
|
|
|
# site: https://count.getloli.com # your website
|
2020-08-12 10:03:35 +00:00
|
|
|
port: 3000
|
|
|
|
|
|
|
|
db:
|
2023-03-06 10:57:41 +00:00
|
|
|
type: sqlite # sqlite or mongodb
|
2020-08-12 10:03:35 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
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
|
|
|
|
```
|
|
|
|
|
2024-10-01 12:44:32 +00:00
|
|
|
Replit can use Secrets, check [documentation](https://docs.replit.com/programming-ide/storing-sensitive-information-environment-variables)
|
2020-08-12 10:03:35 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
DB_URL="mongodb+srv://account:passwd@***.***.***.mongodb.net/db_count"
|
|
|
|
```
|
|
|
|
|
|
|
|
## Credits
|
|
|
|
|
2023-03-06 10:57:41 +00:00
|
|
|
* [replit](https://replit.com/)
|
|
|
|
* [A-SOUL_Official](https://space.bilibili.com/703007996)
|
2020-08-12 10:03:35 +00:00
|
|
|
* [moebooru](https://github.com/moebooru/moebooru)
|
|
|
|
* rule34.xxx NSFW
|
|
|
|
* gelbooru.com NSFW
|
|
|
|
* [Icons8](https://icons8.com/icons/set/star)
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
2023-03-06 10:57:41 +00:00
|
|
|
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fjourney-ad%2FMoe-Counter.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fjourney-ad%2FMoe-Counter?ref=badge_large)
|