Skip to content

Paskalouis/express-redissimulation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Redis Usage on Express

Simple Prevention Multiple Request from Frontend with Redis. Inspired from the Kennard Wicoady's Golang Redis

Getting Started

express-redissimulation is one of simple example on how to utilize Redis technology into Express webapp usage. This example utilizes redis to prevent multiple requests from frontend in certain period of time (in this case, 10 seconds).

Pre-requisites

Installing

  1. Make sure you have fulfilled all prerequisites above
  2. Clone repo to your local computer
git clone https://github.com/Paskalouis/express-redissimulation.git
  1. Do npm install (This code example for UNIX Command, Windows and other Linux Distro may use different commands)
npm install
  1. Start the app
node app.js
  1. Go to browser and access link below
localhost:3000

Authors

  • Paskalouis Patressi (Express Version)
  • Kennard Wicoady (Go Version)

License

ISC Licensed

About

Simple Prevention Multiple Request from Frontend with Redis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 60.4%
  • HTML 39.6%