As a beginner in web development, you may always think about how to actually put a website you made, on the internet. In this blog, you are going to learn how you can do it in less than 10 minutes with simple steps using Github pages.
This is what we are going to make by the end of the blog. See the URL, it's on the internet 👀.
(This is a simple calculator webapp which contains HTML,css,js files)
- Github account.
- Basic knowledge about git.
Let's get started
Create a repository on GitHub and add all your HTML, CSS, js files.
Note: Make sure you make the repository public.
Open repository and click on Settings.
Scroll down and click on Pages from the left panel.
Now you have to enable GitHub pages for the repository. To do so, click on None and select the main branch of your repository. In my case it is master.
After selecting the branch, the save button will be enabled, so click on Save to confirm.
Now, you can see an indication saying -
Your site is ready to be published at <URL>
Wait for few minutes and refresh the page. That indication will be changed to -
Your site is published at <URL>
Click on the link and that's it your site is ready and you can share the URL with anyone and show off your project.
Refer to this blog to deploy your react app with GitHub pages:
How to host your website on Azure?
Hope this helps you!
Save for reference.
Follow me for more 😃.