Setup and the CLI
Create a project, understand the workspace and run the dev server.
What you will be able to do
- Create a project with ng new.
- Use standalone components for new code.
- Run ng serve for development.
- Keep shared code in a clear folder structure.
In plain English
The Angular CLI creates a workspace with a src folder, configuration and a test setup. Use the CLI for components and services so files are registered consistently.
ng new edubyte-ui --standalone --style=css --routing
cd edubyte-ui
ng serveYour turn
EasyGenerate a component
Use the CLI to generate a standalone component named lesson-card.
BASH · starter
ng generateCheck your understanding before moving on.
Knowledge checkQuestion 1
Which command starts the Angular development server?
Select an answer to continue
Study tools
Make it yours.
Keep a private note for this lesson, then turn the key ideas into flashcards you can revisit.
Sign in to save notes and flashcards.Both are private to your account and stay with your progress.
Sign inFinished reading?
Lock in what you just learned.
0%
Mark this lesson complete to save your place and move one step closer to the certificate.