Setup Angular App with GitHub

Abhishek Garg
3 min readAug 8, 2018

Hi, today we will talk about how you can set up your angular app with git hub repository and track version control with the help of git.

So, the first phase is to create a new app in angular. For making a new app, go to CMD and run this command:

This command will create your app named “ example-git ”. Wait for sometime while node modules are downloading from the server.

Now, run these command to run the application locally:

this command will take few seconds to launch the app , after that go to your browser and open localhost:4200 to see your app. It will look like this:

Now, if you have not install the git yet on your machine, then this is the link to download git:

After installing the git, go to CMD again and type ctrl+c to stop the application and run these git commands:

The first command will initialize the git in your folder and next two will commit your code.

Now your have setup your app with git and its time to make a repository on Github. Follow these steps:

  1. go to https://github.com and create your account.
  2. Click start a project

3. Now specify a name for your repo

4. After clicking the button create repository your will see the screen

5. Go to CMD and run these command to push your code on repo:

Now your app is on github you can check in your github account. Open your repository and your will see your code as here:

So, this was the complete step by step tutorial for setup github repo. Thank you for reading the article.

--

--