Skip to content

ajcuddeback/api-rate-limiter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub top language GitHub code size in bytes GitHub issues

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

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 [email protected]