How To Host Your Webpage On Netlify

WHAT IS NETLIFY AND GETTING STARTED WITH NETLIFY

How To Host Your Webpage On Netlify

Netlify is an all-in-one platform for automating modern web projects. It replaces your hosting infrastructure, continuous integration, and deployment pipeline with a single workflow. This means you can use Netlify for hosting most if not all your web projects.

This tutorial will show you how easy it is to launch or deploy your site on Netlify. If you are not already a Netlify user, go ahead and sign up for free first. you sign up by going to the netlify web page and click on sign up

FireShot Capture 205 - Netlify_ Develop & deploy the best web experiences in record time_ - www.netlify.com.png

Step 1: Add Your New Site

FireShot Capture 207 - Team overview - Netlify - app.netlify.com.png Once you’ve logged in, you’ll be taken to app.netlify.com. Creating a new site on Netlify is simple. If you’re just starting out, there’s only one option, Click the Add A New Site from Git button shown above.

Clicking the “Add A New Site from Git button” brings you to this screen: FireShot Capture 208 - Create a new site - Netlify - app.netlify.com.png

Be sure to push your repo to GitHub, so that Netlify will link to GitHub. Click the GitHub button as illustrated in the screenshot above.

Step 3: Authorize Netlify

authorize-github.jpg Clicking the Authorize Application button will allow Netlify and GitHub to communicate with each other. Netlify doesn’t store your GitHub access token on their servers. If you’d like to know more about the permissions Netlify requests and why they need them, you can visit their documentation on Git provider permissions.

Step 4: Select Your Repo

FireShot Capture 209 - Create a new site - Netlify - app.netlify.com.png Now that you’ve connected Netlify and GitHub, you can see a list of your Git repos. Choose the repo you’d like to deploy from the list.

Step 5: Configure Your Settings

FireShot Capture 210 - Create a new site - Netlify - app.netlify.com.png Here you can configure your options. Make sure your publish directory is where your public site files are placed after building the site (e.g. dist) and your build command is whatever you run to build the site (e.g. npm run build). Then click the Deploy site button to continue.

Step 6: Build Your Site

FireShot Capture 213 - youthful-newton-b3f88d - Netlify - app.netlify.com.png at this point, It takes just a few seconds for it to build and deploy your site.

Step 7: All Done

Once the build completes, your site is live! on the top left corner of your screen (site overview) you can see the URL of your newly published site.

FireShot Capture 211 - youthful-newton-b3f88d - Netlify - app.netlify.com.png

Netlify automatically generated a name for your site. its some weird contraption of letters or words but we can change it by visiting the site settings tab and clicking “Change site name”: and save

InkedFireShot Capture 212 - Settings for youthful-newton-b3f88d - General - app.netlify.com_LI.jpg

well that was easy, wasn't it?

Thank you for reading. follow my blog for more tutorials and tips that will be beneficial to you on your coding journey.