This repository contains the training materials for the Angular Basic Training by OpenValue.
- Node.js version 24 (we recommend to install Node.js using the node version manager "nvm"
- execute
node --version
to verify
- execute
- npm version 11 (it's included in the Node.js installation)
- execute
npm --version
to verify - executing
npm install
in this repo should be successful - executing
npm run start
should allow you to see some content under localhost:4200
- execute
- Git
- make sure you can clone this repository and create your own commits
- Chrome browser
- in the root of this repo
npm run test
should run the tests and open a Chrome Browser
- in the root of this repo
- around 2 GB of free space
To start a local development server, run:
npm run start
Once the server is running, open your browser and navigate to http://localhost:4200/
. The application will automatically reload whenever you modify any of the source files.
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
npx ng generate component component-name
For a complete list of available schematics (such as components
, directives
, or pipes
), run:
npx ng generate --help
To build the project run:
npm run build
This will compile your project and store the build artifacts in the dist/
directory. By default, the production build optimizes your application for performance and speed.
To execute unit tests with the Karma test runner, use the following command:
npm run test