DEV Community

Cover image for HOW TO HOST AN APPLICATION USING GITHUB
Shreeprabha bhat
Shreeprabha bhat

Posted on

HOW TO HOST AN APPLICATION USING GITHUB

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

  1. Tap on the "New" option on top right corner

  2. Provide Repository name.

  3. Give the description if you wish.

  4. Make your repository public/private based on your choice.

  5. Tap on Create Repository on the bottom right corner.

STEP 2: UPLOAD YOUR APPLICATION FILES

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)