https://github.com/winking324/is-today-holiday
An API service that queries whether today is holiday
https://github.com/winking324/is-today-holiday
api holiday
Last synced: 8 months ago
JSON representation
An API service that queries whether today is holiday
- Host: GitHub
- URL: https://github.com/winking324/is-today-holiday
- Owner: winking324
- License: mit
- Created: 2022-01-11T09:49:08.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-09T01:11:32.000Z (almost 3 years ago)
- Last Synced: 2024-12-26T03:43:10.667Z (10 months ago)
- Topics: api, holiday
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 今天是休息日吗?
在使用 Apple Shortcut(捷径)时,经常会有查询一下今天是不是休息日,以继续执行与工作日不同的操作。
找了下现成的一些公开的接口,经常会出现超时或者收费的情况,所以简单写了一个查询当前是否为工作日的接口。
## 如何使用
在使用之前,请保证你的服务器上已经安装 docker 和 docker-compose 等工具。
使用该服务,最好搭建一个统一的 OpenAPI 网关,其他的应用接口作为 Upstream 挂在该网关后面,用 OpenAPI 网关提供鉴权、限流等。
``` shell
# 这里使用 app.net 网络,主要是为了让 OpenAPI 网关访问
docker network create app.netmkdir -p /data/log/app/is-today-holiday
mkdir -p /data/app/is-today-holidaycp -r configs /data/app/is-today-holiday
cp deployments/docker-compose.yaml /data/app/is-today-holidaycd /data/app/is-today-holiday
docker-compose up -d
```