How to Deploy a Front End Application with Netlify
Hi everyone! In this article, I’m going to discuss how to deploy an application you’ve built.
The application deployment process might seem complicated, and this might prevent some developers from deploying their applications after they’ve developed them.
So here, I will be taking you through a seamless process to spin up your application which can then be accessed anywhere in the world via a URL.
Table of contents
- Why do you need to deploy your frontend applications?
- What is Netlify?
- What you can do with Netlify
- How to deploy your site
Why do you need to deploy your frontend applications?
There are numerous advantages to deploying your applications. Of course, you don’t want your beautiful application to sit on your localhost forever.
Deploying your application makes it easier to share your project, side-gig, or startup with potential investors or future employers. If they can see those projects, it helps them gauge your skills. It also lets you show off your progress to the world.
In this article, we will be using the amazing Netlify platform to deploy our application.
That name sounds familiar, right? But if you haven’t used it to deploy a web application yet, trust me I know how you feel.
I will take you through the steps to get your site deployed to Netlify in less than 4 minutes. We’ll also see some other functionalities that can be done with Netlify out of the box.
What is Netlify?
Netlify is a platform that lets developers automate modern web projects, and it’s a place where you can deploy your application without worrying about frustrating configurations.
You can also integrate cool features and dynamic functionality like serverless functions and form handling on Netlify. Sounds good, right?
Netlify helps you run the build command each time you push an update to your repository.
There are additional settings that you can configure like auto-deploy along with other useful deployment settings.
Site deploys (Atomic deploys)
One of the awesome features Netlify has is site deployment. It ensures that your site is deployed and always consistent.
You can also enable deploy notifications, run a test while Netlify compares the new deploy with the existing one, and then update only the files that have been changed.
Monitor sites (Netlify Analytics)
Monitoring your site might become difficult if you don’t have proper infrastructure in place.
You can easily monitor your site’sactivities on this platform where you can track each log on the team’s build usage.
Domains & HTTPS (Register new domains)
In simple terms, a domain is the URL anyone types into the browser to visit your site. You can assign a custom domain if you have already purchased one or secure a domain from Netlify.
Either way, the domain name system management is handled by Netlify. They also provide free automatic HTTPS on all sites. Cool right?
Routing (Learn about routing)
Routing, Redirects, proxies, and so on all become much easier when your site is deployed on Netlify.
Here’s another cool feature I enjoy: whenever you need to add someone to the team, you can set up role-based access controls that allow the Admin/Senior developer to take control and give access to individuals on the team to avoid escalations.
Forms (Netlify Forms)
Build bots handle form submission by parsing your HTML files directly at deploy time. You can also configure the receiver, group, and notifications.
Functions (Deploy serverless functions)
Serverless functions can be referred to as single-purpose, programmatic functions that are hosted on managed infrastructure.
Netlify lets you deploy serverless Lambda functions with management handled directly within Netlify, while they are built and deployed with the rest of your sites.
The Netlify CLI (Netlify command-line interface)
You might be wondering if all activities are carried out on the Netlify UI alone – well, no they’re not.
There is another great feature that allows developers to deploy sites or do some configuration right from their terminal. The Netlify CLI can be used to run a local development server that can be shared, including plugins.
The Netlify API (Netlify API)
Netlify’s API can be used to handle the deployment of sites, script injections, and more. It uses JSON for serialization, which conforms to the REST standard.
Accounts & billing
Learn about managing team members and how to transfer sites between teams.
I hope you can now see how powerful Netlify is. Sut seeing sometimes can be deceiving, so let’s try it out on our own.
As you can tell from the title of this article, I will only be showing you how to deploy your site to netlify.com. But to explore other functionalities click here to read more, practice, and explore.
How to Deploy a Site to Netlify
Login or signup on netlify.com if you are a new user. It’s free 🙂
As shown below, all you need is to select a site from Git by clicking on the button with the name “New site from Git”.
You will see the interface below where you can choose the Git provider where your site source code is hosted.
Choose the repository you want to link to your site on Netlify.
We are almost there 🙂
This section allows you to get more control over how Netlify builds and deploys your site with the settings option shown below:
Wait, Netlify is getting things ready for you. 🙂
Congratulation Your site is Live!
Click on the generated URL with the .netlify.com extension below the header that states “Deploys for”.
Lastly: You can also set up a new domain or change the generated one to something nice by clicking on the “…” that embeds “Edit site name” but it will end with .netlify.com. Click here to read more
I hope you have found this guide useful 🙂
NOTE: the Netlify URL extension is now netlify.app. All netlify.com URLs will now be redirected to netlify.app.
Please don’t forget to check out my other articles, it gives me joy 🙂 and the vibes to write more stuff.
You can also reach out to me on Twitter.
Read More …