Lesson 2 / 30

Your First Project

Create a project, run it, and see how it's organized.

Create & serve

ng new scaffolds a new app; ng serve starts a live-reloading dev server.

ng new my-app
cd my-app
ng serve   # http://localhost:4200

Project structure

src/app holds your components, main.ts bootstraps the app, angular.json configures the build, and index.html is the single HTML shell.

Modern default

Since Angular 17, ng new scaffolds a standalone, NgModule-free app by default — that's what this course uses throughout.