example of a URL shortner api that could run on an Express/Node server
See Requirements for what this project is meant to do
Use yarn!
yarnto install dependenciesyarn debugto run the project for developmentyarn buildand thenyarn startto run the program
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.