A modern URL shortener built with React, Material UI and Firebase


A modern URL shortener built with React, Material UI and Firebase.

Authentication of this project has been taken from https://github.com/chaseoc/firebase-login-page

This project was bootstrapped with Create React App.


  1. Self Hosted using Firebase (Free plan)
  2. Admin Panel for link management
  3. Domain Customizable to anything you wish
  4. Modern, Material UI (we all love this!)
  5. Actively under development

Why another URL shortener?

I come from the PHP era. Back then we had YOURLS which gave us a perfect self-hosted URL shortener on our domains. But the YOURLS UI now feels ancient and honestly, with the availability of amazing new tech, its a sin to not use them.

This project has been created with the goal of providing a modern re-do of YOURLS and at the same time, introduce new features wherever possible!


You’ll need to make the following set up:

  1. A Firebase project with Hosting (Free plan will work)

  2. Add a Custom domain to your Firebase Hosting (you know, the shorter, the better)

  3. Enable Email/Password authentication in your Firebase Authentication settings and set up your users.

  4. Enable Firestore in the Firebase project.

Setup Guide Video

I went ahead and put all the installation steps into a video! You can watch the FireShort Setup Guide here -


How to Use

  1. Clone the repo:
git clone https://github.com/xprilion/fireshort.git

  1. Change working directory to project:
cd fireshort

  1. Edit src/firebase/firebase.js and put your Firebase Project Config here:
const firebaseConfig = {
  //Your config values

  1. Edit firebase.json and change hosting.site key:
"hosting": {
    "site":"yoursitename", <-- This is your firebase hosting site name
    "public": "build",

  1. Edit src/config.js and update global.config.mainsite:
module.exports = global.config = {
    mainsite: "https://xprilion.com" <-- your main site here
    // other global config variables you wish

  1. Local test run
npm start

If you get an error like this here:

Attempting to bind to HOST environment variable: x86_64-conda_cos6-linux-gnu

you need to remove your conda environment and set back the host. Use the following commands:

conda deactivate
export HOST=localhost

  1. Production build
npm run-script build

  1. Deploy to Firebase
firebase --project **your_project_id** deploy

  1. [Optional] Connect a Custom domain

Follow the Firebase documentation article to setup a custom domain for your URL shortener.


The following configurations are available:

Parameter Type Description
global.config.mainsite URL The site to which a blank suffix redirects. For ex: short.site -> long.site

Suggested Rules for Firebase Database

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read : if true;
      allow write : if request.auth.uid != null;

Download Details:

Author: xprilion

GitHub: https://github.com/xprilion/fireshort

#reactjs #javascript

What is GEEK

Buddha Community

A modern URL shortener built with React, Material UI and Firebase
Autumn  Blick

Autumn Blick


How native is React Native? | React Native vs Native App Development

If you are undertaking a mobile app development for your start-up or enterprise, you are likely wondering whether to use React Native. As a popular development framework, React Native helps you to develop near-native mobile apps. However, you are probably also wondering how close you can get to a native app by using React Native. How native is React Native?

In the article, we discuss the similarities between native mobile development and development using React Native. We also touch upon where they differ and how to bridge the gaps. Read on.

A brief introduction to React Native

Let’s briefly set the context first. We will briefly touch upon what React Native is and how it differs from earlier hybrid frameworks.

React Native is a popular JavaScript framework that Facebook has created. You can use this open-source framework to code natively rendering Android and iOS mobile apps. You can use it to develop web apps too.

Facebook has developed React Native based on React, its JavaScript library. The first release of React Native came in March 2015. At the time of writing this article, the latest stable release of React Native is 0.62.0, and it was released in March 2020.

Although relatively new, React Native has acquired a high degree of popularity. The “Stack Overflow Developer Survey 2019” report identifies it as the 8th most loved framework. Facebook, Walmart, and Bloomberg are some of the top companies that use React Native.

The popularity of React Native comes from its advantages. Some of its advantages are as follows:

  • Performance: It delivers optimal performance.
  • Cross-platform development: You can develop both Android and iOS apps with it. The reuse of code expedites development and reduces costs.
  • UI design: React Native enables you to design simple and responsive UI for your mobile app.
  • 3rd party plugins: This framework supports 3rd party plugins.
  • Developer community: A vibrant community of developers support React Native.

Why React Native is fundamentally different from earlier hybrid frameworks

Are you wondering whether React Native is just another of those hybrid frameworks like Ionic or Cordova? It’s not! React Native is fundamentally different from these earlier hybrid frameworks.

React Native is very close to native. Consider the following aspects as described on the React Native website:

  • Access to many native platforms features: The primitives of React Native render to native platform UI. This means that your React Native app will use many native platform APIs as native apps would do.
  • Near-native user experience: React Native provides several native components, and these are platform agnostic.
  • The ease of accessing native APIs: React Native uses a declarative UI paradigm. This enables React Native to interact easily with native platform APIs since React Native wraps existing native code.

Due to these factors, React Native offers many more advantages compared to those earlier hybrid frameworks. We now review them.

#android app #frontend #ios app #mobile app development #benefits of react native #is react native good for mobile app development #native vs #pros and cons of react native #react mobile development #react native development #react native experience #react native framework #react native ios vs android #react native pros and cons #react native vs android #react native vs native #react native vs native performance #react vs native #why react native #why use react native

Raleigh  Hayes

Raleigh Hayes


Firebase URL Shortener Tutorial

Hey everyone :) This week’s video is about making a super simple URL shortener using firebase hosting. This was inspired by https://github.com/kentcdodds/netlify-shortener. I hope you enjoy it!

Useful Links:

#url #firebase #firebase url #firebase url shortener

Raleigh  Hayes

Raleigh Hayes


Firebase & React Tutorial | Build a Todo App

Hey everyone! Firebase + React is probably one of the quickest ways to get started with a full-stack application, and it’s so simple! Today’s video is a tutorial on how to get started with Firebase authentication, firestore, and cloud functions. I hope you enjoy it!

Useful Links:

0:00 - Intro
0:19 - What is Firebase?
0:50 - Create Project In Firebase
1:45 - App Code Intro
2:35 - Initialise Firebase
4:48: Google Authentication
6:29 - Firestore - Write, Read
8:21 - Firestore Rules
10:34 - Firestore - Edit, Delete
12:39 - Cloud Function
16:23 - Thank You For Watching :)

#todo #react #firebase #firebase & react #firebase & react tutorial

What is firebase,firebase bangla tutorial.


#firebase #firebase database #c# with firebase #c# with firebase tutorials #c# with firebase database #asp.net with firebase database

Anda Lacacima

Anda Lacacima


How to Build React Native UI app with Material UI

UI design for native Android and iOS applications can be complex and demanding. However, the importance of sleek and responsive UI cannot be overstated. With the introduction of the Material Design concept in 2014, Google established a standard for mobile and web development that makes life easier for developers and UI designers.

As one of the most popular frameworks for building native Android and iOS applications, React Native ships with a lot of libraries for Material Design. With over 46,000 downloads per week, Paper is the most popular React Native library based entirely on Material UI. A fast library, Paper makes the UI design process easy, seamless and efficient.

Here is a synopsis of what we will cover:

  • Setting up React Native app using the expo CLI
  • Installing React Native Paper and other dependencies
  • Creating custom themes in React Native Paper
  • Using custom themes in React Native Paper
  • Using Material icons in React Native
  • Material UI-based components in React Native paper (eg. cards, bottom navigation, etc)

Let’s get started.

Create a new React Native project

If you don’t have the expo CLI, install it globally in your computer using the following command:

npm install -g expo-cli

Then, install a blank React Native (expo) project:

expo init --template bare-minimum

Open the project in your favorite editor. To open it in Visual Studio Code, navigate to the project root and enter the following command:

code .

The project structure will look like this:

#react native #react #material ui