From the course: MongoDB for MEAN Stack Developers

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Set up an app with angular CLI

Set up an app with angular CLI

From the course: MongoDB for MEAN Stack Developers

Start my 1-month free trial

Set up an app with angular CLI

- [Instructor] In this video, we'll focus on setting up the Angular front-end using a command-line interface tool called Angular CLI. And as mentioned before, we'll need to have Node installed in order to get access to npm install. So let's open up another command prompt window, and we'll go over into our documents. And inside here let's make another folder called messageboard, and let's npm install dash g, for global, at angular slash cli to install the cli tool. Next, let's go inside our new messageboard directory, and in here we'll use ng, which is how we access the Angular CLI tool we just installed. And we'll use the new command to create a new project, and we'll call the project frontend. I'll select no for routing since we'll have a very basic web app, and I'll leave the default css selected. You can always add routing later if you want to create a more complex web app once you're done the course. Now let's go into our front-end, and then I'll simply type ng serve to try it…

Contents