Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/kevinrodriguezmorales/siget/llms.txt

Use this file to discover all available pages before exploring further.

The ng serve command launches a local development server for the Siget application using the @angular/build:dev-server builder. It compiles your application in development mode by default, watches source files for changes, and automatically reloads the browser — making it the primary workflow command during day-to-day development.

Synopsis

ng serve [project] [options]
npm start

Options

OptionTypeDefaultDescription
--portnumber4200Port number to listen on
--hoststringlocalhostHostname or IP address to bind the server to
--open / -obooleanfalseAutomatically open the app in the default browser after starting
--configuration / -cstringdevelopmentNamed build configuration to use (e.g. production, development)
--watchbooleantrueRebuild and reload on source file changes
--sslbooleanfalseServe the application over HTTPS

Examples

# Start the dev server on the default port 4200
ng serve

# Start on a custom port and open the browser automatically
ng serve --port 3000 --open

# Serve using the production build configuration
ng serve --configuration production

# Bind to all network interfaces (accessible on your local network)
ng serve --host 0.0.0.0
The npm start script in package.json maps directly to ng serve, so both commands are equivalent. Use whichever fits your workflow.

Configuration in angular.json

Siget’s serve architect target is defined in angular.json and delegates to @angular/build:dev-server. Each named configuration points to the corresponding build target so the dev server always uses the correct compiler options.
"serve": {
  "builder": "@angular/build:dev-server",
  "configurations": {
    "production": {
      "buildTarget": "siget:build:production"
    },
    "development": {
      "buildTarget": "siget:build:development"
    }
  },
  "defaultConfiguration": "development"
}
The defaultConfiguration is set to development, which means ng serve always starts in development mode unless you override it with --configuration. The development build configuration disables optimization and enables source maps, giving you fast rebuilds and readable stack traces while you work.

Build docs developers (and LLMs) love