Skip to content

dfirebaugh/url_shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a URL shortening api.

Create a file named .env in the root directory and save the mongodb URI in a variable called URI e.g. URI=mongodb://<dbuser>:<dbpassword>@ds8888.mlab.com:21896/url-shortener

https://dfire-url-shortener.glitch.me/<url-to-shorten> will create a new shorter url e.g. https://dfire-url-shortener.glitch.me/new/2 Which you can use to redirect to the orirginal url.

Example Usage

https://dfire-url-shortener.glitch.me/www.google.com will create: https://dfire-url-shortener.glitch.me/new/1 which will redirect to: https://google.com

If a URL already exists in the database, it will return an error stating that the URL already exists and show you the stored value.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors