Skip to content

mhdatie/shortify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shortify

A convenient URL shortener API

Article on Medium

Inspiration

How to code a URL shortener? with some further reading:

Implementation

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.

Installation

  • 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

Licence

MIT

Releases

No releases published

Packages

No packages published