Store and resolve shortened urls Firebase
View Demo
·
Report Bug
·
Request Feature
The classic URL shortening/redirecting service using free resources from Firebase (cloud functions, firestore, hosting).
To get a local copy up and running follow these simple steps.
- npm
npm install npm@latest -g
- Firebase CLI
npm install -g firebase-tools
- Login
firebase login
- Clone the repo
git clone https:://github.com/cdvel/url-shortenr.git
- Install NPM packages
npm install
- Create and use your firebase project: url-shortener
firebase projects:create
$ url-shortener
firebase use url-shortener
- Update unique hosting site on firebase.json (ex. https://shortenr.web.app)
"hosting": {
"site": "shortenr",
- Set your authorized google email to access the shortener with
firebase functions:config:set authorized.email="[email protected]"
- Deploy
firebase deploy
- Copy and paste a long URL and click "Shorten ✂️"
- A shortened URL such as
https://shortenr.web.app/SH0RT
is generated - A list of all shortened URLS can be found at https://console.firebase.google.com/u/0/project/`{your-project}`/storage
See the open issues for a list of proposed features (and known issues).
Distributed under the Apache License. See LICENSE
for more information.