This lesson guides you through the process of setting up a Netlify account and deploying a website. You'll learn how to sign up for a Netlify account using GitHub, import an existing project, connect to a Git provider, configure repository settings, and deploy the site.
It also explains that during the initial deployment, errors might occur because the site doesn't have an API key. The next step is covered, which involves obtaining and storing the API key in a Netlify environment variable. By following these steps, you'll be able to deploy and access your website using the provided Netlify URL.
[00:00] Okay next up we need a Netlify account. It's really easy to do. Click on this slide and it's going to take you through to the sign up page which looks like this. Now I'm going to sign up with GitHub and then once it's done its thing it will take me to the dashboard and from here I'm going to select
[00:19] add new site. I'll import an existing project and it will invite me to connect to a Git provider. I'll choose GitHub and it's going to say no repositories found and that's absolutely fine. Click configure Netlify on GitHub and this will open a pop-up page and you can scroll down
[00:37] and either select all repositories or select repositories individually. I'm going to do that one and I'll choose the repository. I'll just type in wewingit underscore deploy because that's the name of my repo and click save and we'll be taken to a settings page and on here we can leave
[00:54] everything as it is and just scroll down to the bottom and click on deploy site. As the site deploys we will see site deploy in progress right here and then eventually published. So now the site is live we can click on open production deploy and that is going to actually take us to our site.
[01:12] We've got our own funky Netlify URL right here and let's see if it works. So we can just come down here type in a question press send and we'll wait and nothing happens. Let's open up DevTools and we've got plenty of errors. Well that isn't actually a problem we've only done the first stage
[01:31] and actually it would be really weird if it worked it doesn't have an API key right now. So our next step is to get our API key to Netlify and we're going to store it in a Netlify environment variable. Let's come on to that next.
Member comments are a way for members to communicate, interact, and ask questions about a lesson.
The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io
Be on-Topic
Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.
Avoid meta-discussion
Code Problems?
Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context
Details and Context
Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!