Hey guys, after a long time, I started again to write blog posts. Thanks to @CSharp-Corner for giving me a platform to share my knowledge.

In this post, we will see about deployment of Angular 2 Application in GitHub pages. It is really an easy way to do it. Let’s dive into this.

Before knowing about the deployment, let’s talk about the required things we need to have ready.

Prerequisites

The following need to be installed in PC.

Some basic commands in Git

Once installation of the things listed above, we can create Angular 2 Application with the commands, mentioned below.

Now you can open the command prompt from ‘ng2SampleApplication’ created folder. Subsequently, follow the commands, mentioned below to deploy our code in GitHub pages.

That’s it… Now, you can access your project by using the url type, mentioned below.

I hope, this post will help you. If you have any queries, please post in the comments section and I will try to answer. If anything is found wrong in the step mentioned above, let me know and I will correct it, which will help other developers also.