Skip to content

rself/link-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Link Shortener Example

Instructions

Assumes you have node v10+ installed on your computer https://nodejs.org/en/download/

1) Install dependencies

npm i

2) Start server

node index.js

3) To add a new Uri to the "database", navigate to http://localhost:8000/shorten?uri=[someurihere]

It will return the shortened link as part of a json

4) To navigate to the uri you just added, simply copy and paste the short-uri received in the reponse from the preeevious step

You will be redirected to that page assuming the uri exists and is accessible.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published