Thursday, May 25, 2023

Free web hosting website and step to deploy for IT Student Practice

 

One popular free web hosting service for IT student practice is GitHub Pages. Here are the steps to deploy a website using GitHub Pages:


1. Create a GitHub account: If you don't have one already, sign up for a GitHub account at https://github.com/.


2. Create a new repository: In your GitHub account, click on the "New" button to create a new repository. Give it a name (e.g., "my-website") and choose the option to initialize it with a README file.


3. Upload your website files: In the newly created repository, click on the "Upload files" button to upload your HTML, CSS, and JavaScript files. You can also create a new folder and upload files into it if needed.


4. Enable GitHub Pages: Once your files are uploaded, go to the repository's "Settings" tab and scroll down to the "GitHub Pages" section. Choose the branch you want to deploy (usually the main branch) and click on the "Save" button.


5. Access your website: After saving, GitHub Pages will provide you with the URL where your website is hosted. It will be in the format `https://username.github.io/repository-name`. It may take a few minutes for the website to be deployed and accessible.


6. Customize the domain (optional): By default, your website will have a domain in the format mentioned above. If you want to use a custom domain (e.g., www.mywebsite.com), you can configure it in the "Custom domain" field under the "GitHub Pages" section in the repository settings. Follow the instructions provided by GitHub to set up the DNS settings for your domain.


That's it! Your website should now be deployed and accessible using the GitHub Pages URL. You can continue making changes to your code and push them to the repository, and GitHub Pages will automatically update the website.


Remember to check the documentation and guidelines provided by GitHub Pages for more details and advanced configurations, such as choosing a specific theme or using Jekyll for static site generation.