Skip to content

RevoU-FSSE-2/week-4-audiprevio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Deploy Your Website with Netlify, GitHub, and a Custom Domain

Hello, friend! πŸ‘‹ This is your step-by-step guide to showcase your amazing website to the world using Netlify, GitHub, and your very own custom domain. Let's do this!

FINAL PRODUCT: Next Dot Jobs

Screen Shot 2023-07-07 at 23 52 07
Screen Shot 2023-07-07 at 23 52 29

πŸš€ Getting Started

Step 1: Sign Up on Netlify

Go to the Netlify website and sign up for a free account.

Step 2: Connect Your GitHub Project to Netlify


1. Log into Netlify and click on "New site from Git"

Screen Shot 2023-07-07 at 23 27 18


2. Select GitHub as the Source

Screen Shot 2023-07-07 at 23 28 26


3. Deploy your website from the Main Branch

Screen Shot 2023-07-07 at 23 29 05


4. Ta-da your website has been deployed!

Screen Shot 2023-07-07 at 23 29 51


5. You can change the name of the website now, or not. Since we are going to use custom domain at the end of the day anyway


Step 3: Set Up Automatic Deployments

With Netlify and GitHub connected, your site on Netlify will automatically update whenever you push changes to your GitHub repository. But this time we want to do CI/CD using Branch and Pull Request.

  1. Git clone your respository that you use to deploy your site on Netlify, You can use Terminal, 3rd Party CLI, or VS Code. In this case we use Hyper.is

Screen Shot 2023-07-07 at 23 37 45


  1. Add the files that you want to have into the folder above πŸ‘†πŸ» or you can edit the codes directly in VS Code then save

  1. Push the file into your branch

Once you have made the changes you want locally, the next step is to push those changes to your remote branch on GitHub. Below are the steps to do that.

First, navigate to your project directory using the terminal.

cd your-project-directory

Use git add to stage your changes. This tells Git that you want to include the updates from these files in the next commit. To add all the files in the directory, use:

git add .

Now you commit the changes. A commit is like a snapshot of your code at this point in time. Include a descriptive message with your commit summarizing what changes were made.

git commit -m "Your descriptive message here"

Now you're ready to send your changes to GitHub! If you're working on a branch named IMPROVEMENT1, push your changes like so:

git push origin UI-UX-improvement-1.0

After running this command, your changes are now in the IMPROVEMENT1 branch on GitHub.

Remember, it's important to make sure that your local branch and your remote branch are in sync before you start making changes. Use git pull origin BRANCHNAME to update your local branch with the latest changes from the remote before you start making your own changes.

Step 3A: GIT PULL REQUEST

  1. Open Git and Find Request for Pull Request and Click. This Screen should appear. Create the Pull Request and write relevant message
Screen Shot 2023-07-07 at 23 45 59
  1. Approve the Pull Request
Screen Shot 2023-07-07 at 23 46 12
  1. Check if the Pull Request is successful
Screen Shot 2023-07-07 at 23 46 25

Step 4: Buy Custom Domain

Different sites have different pathway to buy a domain. Most of the flows are the same though. This is how Hostinger does it: Screen Shot 2023-07-07 at 23 48 55

Screen Shot 2023-07-07 at 23 49 07 Screen Shot 2023-07-07 at 23 49 20 Screen Shot 2023-07-07 at 23 49 32

Step 5: Connect Your Custom Domain

  1. In your Netlify dashboard, go to "Domain settings" for your website.
  2. Click "Add custom domain" and enter your domain name.
Screen Shot 2023-07-07 at 23 49 43

Step 6: Update Your Domain's DNS Settings with CloudFlare

  1. Go to your domain registrar's dashboard and follow this CloudFlare instruction
Screen Shot 2023-07-07 at 23 50 04
  1. Update the DNS settings to point to Netlify's servers (Netlify will provide the necessary details).
Screen Shot 2023-07-07 at 23 50 35

And voila! Your website is now live on the internet at your custom domain and will automatically update with changes from your GitHub repository. Enjoy!

πŸ“š Further Reading

Have fun deploying! πŸŽ‰

About

week-4-audiprevio created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published