tachybase_todo/packages/samples/ratelimit/README.md
chenos 794080628b
feat: ratelimit sample plugin (#862)
* feat: ratelimit sample

* feat: update doc

* feat: sample url

* fix: update yarn.lock
2022-09-30 12:40:32 +08:00

30 lines
260 B
Markdown

# Rate limiter middleware sample
## Register
```ts
yarn pm add sample-ratelimit
```
## Activate
```bash
yarn pm enable sample-ratelimit
```
## Launch the app
```bash
# for development
yarn dev
# for production
yarn build
yarn start
```
## Demo
[gif]