API Rate Limiter
Description
This is a very basic API Server that has Rate limiting enabled for the /api route! Set to 2 requests per second.
Table of Contents
Installation
Pre-Requisites
- Install Node
Instructions
-
Step 1: Clone this repository
-
Step 2: Open project in your terminal and run 'npm install' to install all dependencies
-
Step 3: Run
npm start
to run the server -
Step 4: Open Postman and make an API Request to
http://localhost:3000/api
-
Step 5: You should get a 200 request reponse
-
Step 6: Spam the Request button, when clicked too much, you will get a 400 error with a too many requests message
Questions
Created by: ajcuddeback
If you have any further questions please feel free to contact me at ajcuddeback@gmail.com