Add Angular application to GIT repository

Generate an angular application is very easy with the angular CLI utility.

Step 1. Set up the Development Environment

Before processing you must have installed Node.js and npm to your computer.

Install Angular CLI with the following commands: 

npm install -g @angular/cli

Step 2. Create a GIT repository

After creating an empty GIT repository,  clone it to a new directory.

git clone <your-repository>.git


Step 3. Create a new Project

Open or keep your terminal window on the parent folder of your local repository.

Remove the README.md first otherwise the angular CLI will throw an error.

Generate a skeleton application by running the following commands:

ng new <your-repository-name> --directory <your-repository-name>

The directory option tells the command line interface to create all required files in the existing folder.

Comments

Popular posts from this blog

Spring JPA : Using Specification with Projection

Chip input using Reactive Form