-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa9a154
commit f72d9db
Showing
6 changed files
with
126 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<p align="center"> | ||
<img src="https://github.com/CorrectRoadH/Likit/blob/main/img/logo.png?raw=true" height="128"/></a> | ||
</p> | ||
|
||
# Likit | ||
|
||
[Demo](https://likit.zeabur.app) | ||
|
||
[English](./README.md) | 简体中文 | ||
|
||
## What is Likit | ||
Likit 是一个 Backend as a Service ,提供点赞(投票、点赞、计数)功能。 部署和使用非常容易。 | ||
|
||
Likit的目标是帮助您在10分钟内实现类似的功能。 | ||
|
||
Likit 适用于中小型应用程序。 您可以选择差异投票工具引擎来获得不同的功能和性能。 | ||
[Getting started](./docs/getting-started.md) | ||
|
||
| features | Simple Vote System | Middle Vote System(WIP) | | ||
| -- | -- | -- | | ||
| Vote | ✅ | 🚧 | | ||
| Unvote | ✅ | 🚧 | | ||
| Count | ✅ | 🚧 | | ||
| List the voted users | ✅ | 🚧 | | ||
| is Voted | ✅ | 🚧 | | ||
| vote events | ❌ | 🚧 | | ||
| message queue | ❌ | ❌ | | ||
| requires | redis | redis,postgres | | ||
|
||
# Screenshots | ||
|
||
![](./img/screenshot-1.png) | ||
![](./img/screenshot-2.png) | ||
|
||
# Deployment | ||
|
||
## Zeabur | ||
Deloyment on Zeabur by one click | ||
|
||
[![Deploy on Zeabur](https://zeabur.com/button.svg)](https://zeabur.com/templates/KZOLHA?referralCode=CorrectRoadH) | ||
|
||
## Docker Compose | ||
``` | ||
wget https://raw.githubusercontent.com/CorrectRoadH/Likit/main/docker-compose.yaml | ||
docker compose up -d | ||
``` | ||
|
||
## K8S | ||
Coming soon | ||
|
||
# Documentation | ||
[Document](./docs/getting-started.md) | ||
|
||
## RESTful API | ||
|
||
### Vote | ||
POST `http(s)://<your likit ip>/api/v1/vote` | ||
|
||
body | ||
|
||
``` | ||
{ | ||
"businessId": "businessId", | ||
"messageId": "messageId", | ||
"userId": "userId" | ||
} | ||
``` | ||
|
||
POST `http(s)://<your likit ip>/api/v1/unvote` | ||
|
||
body | ||
|
||
### Unvote | ||
``` | ||
{ | ||
"businessId": "businessId", | ||
"messageId": "messageId", | ||
"userId": "userId" | ||
} | ||
``` | ||
|
||
### Count the number of votes | ||
GET `http(s)://<your likit ip>/api/v1/count/:businessId/:messageId` | ||
|
||
### List the users who voted | ||
GET `http(s)://<your likit ip>/api/v1/list/:businessId/:messageId` | ||
|
||
### Check if the user has voted | ||
GET `http(s)://<your likit ip>/api/v1/isVoted/:businessId/:messageId/:userId` | ||
|
||
|
||
## gRPC API | ||
Coming soon | ||
|
||
## SDK | ||
|
||
### Golang | ||
[Likit Go](https://github.com/CorrectRoadH/likit-go) | ||
|
||
### Java | ||
Coming soon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.