Skip to content

example of a URL shortner api that could run on an Express/Node server

License

Notifications You must be signed in to change notification settings

jack-d-watson/url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

url-shortener

example of a URL shortner api that could run on an Express/Node server

See Requirements for what this project is meant to do

Running this project

Use yarn!

  • yarn to install dependencies
  • yarn debug to run the project for development
  • yarn build and then yarn start to run the program

Future Work

Here's a list of the things I would like to do for this project, especially before it would be used in any kind of production environment.

  • Unit testing, especially on the Base 64 encoding
  • Create a dictionary of banned words to ensure the URL shortener doesn't randonmly generate something hateful, obscene or offensive for a link
  • Add ability to disable a shortened url, either with an expiration time/date or an endpoint
  • Add some kind of real authentication to endpoints that require an api token
  • Do further analysis on the scale this should work at to determine how many characters of base64 should be used for the Token and Short Url.

About

example of a URL shortner api that could run on an Express/Node server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published