Ng Demo screenshot

Ng Demo

Author Avatar Theme by Mraible
Updated: 30 Dec 2024
185 Stars

Bare Bones Angular and Angular CLI Tutorial

Categories

Overview

NgDemo is an Angular project generated using Angular CLI version 17.0.5. It provides development server options, code scaffolding features, build commands, options for running unit tests and end-to-end tests, and guidance for additional help using Angular CLI.

Features

  • Development server: Easily run a dev server with ng serve and access the application at http://localhost:4200/.
  • Code scaffolding: Generate new components, directives, pipes, services, classes, guards, interfaces, enums, or modules with ng generate.
  • Build: Use ng build to compile the project and store build artifacts in the dist/ directory.
  • Running unit tests: Execute unit tests via Karma with ng test.
  • Running end-to-end tests: Conduct end-to-end tests on a chosen platform using ng e2e.

Installation

To install and use NgDemo:

  1. Ensure you have Node.js and npm installed on your system.
  2. Use Angular CLI to install the Angular project:
    ng new ng-demo
    cd ng-demo
    
  3. Use the following commands for development tasks:
    • Run the dev server: ng serve
    • Generate new components, etc.: ng generate component component-name
    • Build the project: ng build
    • Execute unit tests: ng test
    • Run end-to-end tests: ng e2e
  4. For more information or assistance, refer to the Angular CLI documentation using: ng help

Summary

NgDemo is an Angular project facilitated with various development tools and commands through the Angular CLI. Users can easily set up a development server, generate code scaffolding, build the project, run tests, and seek additional help all within the Angular environment.