Malekbenz

Hi, I'm MalekBenz. I author this blog, I'm FullStack Developer, create courses & love learning, writing, teaching technology. ( Javascript, C#, ASP.NET , NodeJS, SQL Server )

Host your website for Free on Github

if you already have github account you can skip this section.

Create a Github account

Go to Github website and signup, Enter a username, email and password.

CMD

choose a account name and click Create a account

CMD

click continue

CMD

you can skip this steps

CMD

Create new repository

Now that you have a github account Click on start a project :

CMD

Name you repository and select Initialize this repository with a README and click Create repository

CMD

Create new file

Now click Create new file

CMD

Name the file index.html and copy and paste the code below:

       <!DOCTYPE html>
        <html xmlns="http://www.w3.org/1999/xhtml">
            <head>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                <title></title>
            </head>
            <body ng-app="myapp">
                <div>
                    <h1>First website with Gihub</h1>
                    <h2>A static website</h2>
                </div>

            </body>
        </html>

CMD

commit the change by clicking commit new file

CMD

Create new Branche

In order to be able to publish the website we must Create a new Branche and name it ng-pages

CMD

Click Settings.

CMD

As you can see in the repository Settings, the website is published at https://malektrainer.github.io

CMD

Run the application

CMD

This website is available at https://malektrainer.github.io

Comments