mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 00:36:07 +00:00
30 lines
260 B
Markdown
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]
|
||
|
|