- This Web App is made to understand underlying funtionality of URL Shortner sevices from prototying to scalabilty point of view.
- Watch this system design Youtube video for proper understanding of system
- Tech stack used : Bootsrap, NodeJS, MongoDB, ExpressJS, nanoid
- Work on progress.
Before proceeding please download and install NodeJS and MongoDB because it is required.
- Download/Clone the Repository
- Navigate into the Repository folder on your disk using Terminal
- Make sure that you have the Node and MongoDB installed
- Run the following command to run the setup,
npm install
Now everything required should be installed, go ahead and run the following command whenever you want to run the app,node index.js
Route | Description | Signature |
---|---|---|
/shorturl | (post) Takes full URL as input | Body: { url } |
/:url | (get) pass shorturl as paramater | Body: { shorturl |
- Basic prototyping
- Copy to Clipboard
- Custom Naming
- Expiration period
- Add Redis for caching
- Changing short code algorithm and check duplicate short codes
- Make scalable