DEV Community

Discussion on: How to create your own custom URL shortener in 10 minutes for free & deploy to GitHub 🚀

Collapse
 
anonimoconiglio profile image
Santiago

Sorry for the noobness but do I need to build it first right? Because following your tutorial gets me the readme page online (with github pages)

Collapse
 
liyasthomas profile image
Liyas Thomas

You're right. I forgot the build step. Let me update my post with little more clarity. Sorry for the confusion, my bad.

Collapse
 
liyasthomas profile image
Liyas Thomas

Thanks for the patience.

EDIT 0: Minimal URL can be hosted on any website hosting services like GitHub/GitLab pages, Firebase/Heroku hosting, etc. Hosting on GitHub pages was just for proof of concept.

If you followed this post and used GitHub pages for hosting, the site will be hosted on your_github_username.github.io/mnmlurl/src I forgot the /src, sorry.

Alternatively you can npm build the project and host the contents from output folder on any other hosting services like Firebase/Heroku etc.

EDIT 1: If you want to take development further, consider contributing on GitHub.

EDIT 2: Minimal URL is an experimental project. Don't shorten sensitive contents/URLs with it.

Collapse
 
anonimoconiglio profile image
Santiago • Edited

Thanks a lot, I confirm it works! ;)
Don't worry this let me understand better how github pages works.

Do you think this could have some basic analytics in the future (like those that tinyurl has?). It would be amazing to know how much people click on the link ;)

Besides, is it possible to shorten urls with the shell using this app?
I don't know how to do it but I'm thinking in something like creating an npm package that one can then install globally on the system, so then do a command like:

mnm <url> --custom-alias chosen-alias 

That would be really amazing!

Thread Thread
 
liyasthomas profile image
Liyas Thomas

A CLI is planned for future. Watch project on GitHub for updates.

Thread Thread
 
anonimoconiglio profile image
Santiago

🤩😍🤩