1588635540
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.
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:
A Firebase project with Hosting (Free plan will work)
Add a Custom domain to your Firebase Hosting (you know, the shorter, the better)
Enable Email/Password authentication in your Firebase Authentication settings and set up your users.
Enable Firestore in the Firebase project.
I went ahead and put all the installation steps into a video! You can watch the FireShort Setup Guide here -
https://www.youtube.com/watch?v=eVU0Wm3HLdM
git clone https://github.com/xprilion/fireshort.git
cd fireshort
src/firebase/firebase.js
and put your Firebase Project Config here:const firebaseConfig = {
//Your config values
};
firebase.json
and change hosting.site
key:...
"hosting": {
"site":"yoursitename", <-- This is your firebase hosting site name
"public": "build",
...
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
};
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
npm run-script build
firebase --project **your_project_id** deploy
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 |
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read : if true;
allow write : if request.auth.uid != null;
}
}
}
Author: xprilion
GitHub: https://github.com/xprilion/fireshort
#reactjs #javascript
1598839687
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.
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:
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:
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
1626904440
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:
https://github.com/redhwannacef/firebase-shortener-tutorial
#url #firebase #firebase url #firebase url shortener
1626915420
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:
https://github.com/redhwannacef/youtube-tutorials/tree/master/firebase-tutorial
Timestamps:
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
1597017248
#firebase #firebase database #c# with firebase #c# with firebase tutorials #c# with firebase database #asp.net with firebase database
1597282669
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:
Let’s get started.
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