1619445240
As part of learning UI/UX design, I decided to redesign my website and work on it. Once I was done with the design and development, I was wondering if there was an easier way for me to deploy than the current method of merging code into master, and then manually typing the Firebase CLI command to deploy it.
Today I will show you how to host your website on Firebase, and integrate it with Github Actions CI/CD, so you can seamlessly deploy code to your site.
I will show the steps assuming that you have your code hosted in GitHub, and are using Firebase deploy for your site. However, the steps might be similar for other vendors as well.
For the purpose of this article, I created a new repo on GitHub. I set up some boilerplate code using create react app. Since the actual UI code is not in the scope of this article, I just made a simple page. Here’s a screenshot of the page.
Custom logo in the default App.js page
Now, I commit the current state of code, and merge it to master. Next, we integrate Firebase.
#react #firebase #github #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
1619445240
As part of learning UI/UX design, I decided to redesign my website and work on it. Once I was done with the design and development, I was wondering if there was an easier way for me to deploy than the current method of merging code into master, and then manually typing the Firebase CLI command to deploy it.
Today I will show you how to host your website on Firebase, and integrate it with Github Actions CI/CD, so you can seamlessly deploy code to your site.
I will show the steps assuming that you have your code hosted in GitHub, and are using Firebase deploy for your site. However, the steps might be similar for other vendors as well.
For the purpose of this article, I created a new repo on GitHub. I set up some boilerplate code using create react app. Since the actual UI code is not in the scope of this article, I just made a simple page. Here’s a screenshot of the page.
Custom logo in the default App.js page
Now, I commit the current state of code, and merge it to master. Next, we integrate Firebase.
#react #firebase #github #javascript
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
1617885180
A simple guide to hosting your single page application.
I recently created a website using the Create React App starter template to demonstrate an npm package I developed. I thought it would be pretty straightforward to deploy this site using GitHub Pages, however, I was wrong. After some trial and error, I managed to sort it out. This article aims at recreating the scenario and walking you through the process of solving each problem we encounter along the way.
Let’s start with a common base. We’ll begin by creating a React app using the Create React App utility and also add the code to a GitHub repository. I’ve used the following command to generate this sample React app.
npx create-react-app <project directory> --template typescript
#github-actions #typescript #react #create-react-app #github-pages
1598417400
GitHub Actions provide a way to automate pretty much anything you want to do with your repository. It can be used to automatically test your project every time you make a pull request or push some code to it, or maybe to publish something to GitHub Packages every time you make a release. The possibilities are endless.
So, in this article, I’m going to walk you through the most obvious functionality of GitHub Actions: deploy your application to production in an automated fashion, so you never have to do it manually again.
Keeping in mind that the goal of this tutorial is the deployment, not the application being deployed, we are going to set up a React application using only the template that is already provided when you set up a React app, with a few modifications to make it a little more personal.
Then, we are going to set up a project on Firebase and extract some credentials so we can use the Hosting functionality to eventually — guess what? — host our application and make it available in the internet.
Finally, we will write our workflow file, commit it to GitHub, sit back, and watch the magic of automation happen right before your eyes.
This section might be unnecessary for the majority of the readers, but I’ll keep it here for those who maybe never dealt with React before and want a glimpse of this beauty. If this is like eating a candy to you, please jump to the next section.
Then buckle up, snap your fingers, and go through the following steps:
npm install -g npx
3. Open a terminal of your choice, select a folder where you want your project to live, decide on a name for your project (I’ll use awesome-app for this tutorial), and use NPX to build your application’s template:
npx create-react-app awesome-app
4. Go grab some coffee while everything is being set up, then return to your desk, move into the recently created awesome-app folder and start the application with the following commands:
cd awesome-app
npm start
Wait for it and… Awesome! You now are the proud owner of a website! Right there running in your browser with the animated React logo and all. This is sufficient for the purposes of our demo, but go ahead and edit src/App.js to something more personal, if you so desire. Being a cat person, mine looks like this
#firebase #automation #react #deployment #github-actions