StackPointers

Be Coded….

Python

Install and Setup Angular 7 on Ubuntu 18.04

Angular is a JavaScript opensource framework which helps in developing single page web applications suitable for web/mobile/desktop. Angular supports the use of TypeScript instead of JavaScript in your project if you are familiar with it.

It is a platform that makes it easy to build applications with the web. Angular combines declarative templates, dependency injection, end to end tooling, and integrated best practices to solve development challenges. Angular empowers developers to build applications that live on the web, mobile, or the desktop.

The current stable version of Angular is 7.0.1 and we are going to install it on Ubuntu 18.04.

1. INSTALL NODEJS

Since Angular is a JavaScript framework, it requires to have Nodejs(A JavaScript runtime) installed. 10.x is the current stable version of Node. Installation of Node.js can be done using the below command.

2. INSTALL NPM

Now we need NPM(Node Package Manager) and it will be installed with the Nodejs installation itself. However, we can install the latest version for npm using the below command.

3.INSTALL ANGULAR CLI

Angular CLI helps us to create projects, generate application and library code, and perform a variety of ongoing development tasks such as testing, bundling, and deployment.

It can be simply installed using npm.

4. CREATE A NEW ANGULAR PROJECT

Now we need to set up a workspace for Angular projects in our system and create a new app.

5. CHOOSING THE CODE EDITOR

You can choose your own favorite code editor for editing your project. But in my case, I choose the Visual studio Code(VS code). Using the below link, you can download VS code for Ubuntu and install.

6. DIRECTING TO YOUR PROJECT FOLDER AND EDITING

Open your new project on VS code using the below command.

7. RUNNING YOUR APPLICATION

The app you created can be run using the command below.

This opens up a new tab on your browser with the URL below.

Comments are Closed

Theme by Anders Norén