Coder Social home page Coder Social logo

tank-status-control / shortfire Goto Github PK

View Code? Open in Web Editor NEW

This project forked from techheavencz/shortfire

0.0 0.0 0.0 96 KB

Simple URL shortener, using the Firebase platform from Google (to be used with custom domain)

License: MIT License

TypeScript 39.03% JavaScript 30.39% HTML 9.15% CSS 21.43%

shortfire's Introduction

ShortFire

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).

Installation

  1. Clone this repository/download release .zip (from Releases)

  2. Create a Firebase project you will use for your shortener (you can use free plan) TODO: link to Firebase console

  3. Setup your custom domain for hosting (for example, thvn.cz in our case) TODO: link to documentation

  4. Open terminal and enter the ShortFire directory

  5. 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

  1. Your shortener is working

To start creating shortened URLs

API

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.

API docs

Planned features

  • 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.