nocobase/packages/samples/ratelimit
2023-07-26 17:37:20 +08:00
..
src refactor(client)!: application, router and plugin (#2068) 2023-07-07 14:35:22 +08:00
client.d.ts refactor(client)!: application, router and plugin (#2068) 2023-07-07 14:35:22 +08:00
client.js refactor(client)!: application, router and plugin (#2068) 2023-07-07 14:35:22 +08:00
package.json chore(versions): 😊 publish v0.11.1-alpha.3 2023-07-26 17:37:20 +08:00
README.md feat: ratelimit sample plugin (#862) 2022-09-30 12:40:32 +08:00
server.d.ts refactor(client)!: application, router and plugin (#2068) 2023-07-07 14:35:22 +08:00
server.js refactor(client)!: application, router and plugin (#2068) 2023-07-07 14:35:22 +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]