Simple URL shortener, using the Firebase platform from Google (to be used with custom domain)
For example, if you have domain techheaven.org and use it in form techheaven.org/events/my-awesome-event, but want to use URL shortener with custom domain, in our case thvn.org
techheaven.org/events/my-awesome-event -> thvn.org/an-event
Or anything you want.
Very easy to deploy, running on Google Firebase, for small projects even free (look at Firebase free tier).
-
Clone this repository/download release .zip (from Releases)
-
Create a Firebase project you will use for your shortener (you can use free plan) TODO: link to Firebase console
-
Setup your custom domain for hosting (for example, thvn.cz in our case) TODO: link to documentation
-
Open terminal and enter the ShortFire directory
-
Deploy to Firebase
If you don't have firebase command line tools
# If you are using Yarn
(sudo) yarn global add firebase-tools
# If NPM
(sudo) npm install -g firebase-tools
More details in Firebase docs TODO: link
- Your shortener is working
To start creating shortened URLs
URLs can be created and managed using built in API. Each API request must be authorized with Firebase Auth. All users have the same rights, every authorized user is essentially admin.
- tracking clicks on links (analytics), accessible via API
- aliases for shortened urls (
short.url/my-event
->short.url/event
->some-very-long-url-address.com
) - simple UI for shortening URLs
- support tokens (non Firebase Auth) for API authorization