As a beginner I always had the doubt where I can host my application or portfolio freely. With online platform I found out the one of the easiest way to host an application using Github. Today I am going to write about the steps involved in hosting the application using github.
STEP 1: CREATE A REPOSITORY
Login to your github account
Create a repository
Tap on the "New" option on top right corner
Provide Repository name.
Give the description if you wish.
Make your repository public/private based on your choice.
Tap on Create Repository on the bottom right corner.
STEP 2: UPLOAD YOUR APPLICATION FILES
Upload all the files that are involved in your application.
You can refer "https://dev.to/vidyarathna/getting-started-with-github-3a7d" this article from @vidyarathna to upload your files to the github using git.
STEP 3: ENABLE GITHUB PAGES
Open your repository.
Go to settings and open "Pages" option.
Select "main" branch from the dropdown under Branch.
Once you choose the branch save it.
STEP 4: ACCESSING THE APPLICATION
Once you save you the branch you will see a message on the top.
Message on the top contains the URL to your application which will be in the format "https://your-username.github.io/my-app".
You can tap on the "Visit site" on the right side of the URL.
You can visit your application and perform preferred action using this.
You can also select Custom domains to host your applications. You can check Github's documentation for more details. Github's pages site is more suitable for static websites. It is better to use other hosting solutions for dynamic sites.
Top comments (0)