A convenient URL shortener API
Article on Medium
How to code a URL shortener? with some further reading:
A simple NodeJS API that shortens a URL and stores original, or returns original URL. It does not redirect when requesting actual URL (for now).
It uses MongoDB for storage with an auto-incremental ID as explained here, implemented with Mongoose API.
- Run
npm install
to install dependencies- Run
npm run dev
to run the server with nodemon (listens for file changes) or, - Run
npm start
to start the server
- Run
MIT