nocobase/packages/samples/ratelimit
chenos 883f1e6fd1
fix: eslint (#1759)
* fix: eslint

* fix: eslint --fix

* fix: changelog
2023-04-25 13:12:14 +08:00
..
src fix: eslint (#1759) 2023-04-25 13:12:14 +08:00
client.d.ts feat: ratelimit sample plugin (#862) 2022-09-30 12:40:32 +08:00
client.js feat: ratelimit sample plugin (#862) 2022-09-30 12:40:32 +08:00
package.json chore(versions): 😊 publish v0.9.2-alpha.2 2023-04-19 13:10:55 +08:00
README.md feat: ratelimit sample plugin (#862) 2022-09-30 12:40:32 +08:00
server.d.ts feat: ratelimit sample plugin (#862) 2022-09-30 12:40:32 +08:00
server.js feat: ratelimit sample plugin (#862) 2022-09-30 12:40:32 +08:00

Rate limiter middleware sample

Register

yarn pm add sample-ratelimit

Activate

yarn pm enable sample-ratelimit

Launch the app

# for development
yarn dev

# for production
yarn build
yarn start

Demo

[gif]