This project was created for an interview as a NodeJS developer, it shows the use of express server and Redis.
- Shorten given long URL
- Redirect to original on accessing short URL
- Implemented rate limiter so that single user should not be able to hit app more than 100 times per min.
- And user can set URL expiry time.
- URL analytics
- Clone the repo
git clone https://github.com/manish-dalal/url-shortener-server.git
- Check the redis connection in
config.js
file. npm install
in command line to install dependencies inpackage.json
npm run dev
server will start in devlopment
Redis must be installed before use. If not installed:
brew update
brew install redis
redis-server /usr/local/etc/redis.conf