azu dev

The azu dev command provides an enhanced development environment with additional tools and features for productive development. It's an alternative to azu serve with extra development capabilities.

Overview

azu dev [options]

Basic Usage

Start Development Environment

# Start development environment
azu dev

# Start with custom port
azu dev --port 4000

# Start with specific environment
azu dev --env development

Development with Hot Reloading

# Start development server with enhanced features
azu dev

# Output:
# πŸš€ Starting Azu development environment...
# πŸ“¦ Compiling application...
# βœ… Compilation successful!
# 🌐 Server running at: http://localhost:4000
# πŸ”₯ Hot reloading enabled
# πŸ‘€ Watching for file changes...
# πŸ“Š Development dashboard at: http://localhost:4000/dev
# πŸ§ͺ Test runner available
# πŸ“ Code formatter active
#
# Press Ctrl+C to stop the server

Command Options

Option
Description
Default

--port <port>

Server port

4000

--host <host>

Server host

localhost

--env <environment>

Environment name

development

--debug

Enable debug mode

true

--dashboard

Enable development dashboard

true

--tests

Enable test runner

true

--format

Enable code formatting

true

--lint

Enable linting

true

--coverage

Enable code coverage

false

--workers <number>

Number of worker processes

1

Development Features

Development Dashboard

Access the development dashboard at http://localhost:4000/dev:

Enhanced File Watching

Automatic Code Formatting

Linting and Code Quality

Test Runner Integration

Development Dashboard

Dashboard Features

Application Status:

  • Server uptime

  • Memory usage

  • CPU usage

  • Request count

  • Error rate

Database Information:

  • Connection status

  • Migration status

  • Table count

  • Query performance

Route Listing:

  • All registered routes

  • HTTP methods

  • Endpoint classes

  • Route parameters

Performance Metrics:

  • Response times

  • Throughput

  • Memory allocation

  • Garbage collection

Error Logs:

  • Recent errors

  • Stack traces

  • Error frequency

  • Error categories

Test Results:

  • Test status

  • Coverage reports

  • Failed tests

  • Test performance

Accessing Dashboard

Examples

Basic Development

Custom Configuration

Team Development

Development Workflow

1. Start Development

2. Make Changes

3. Monitor Progress

4. Debug Issues

Advanced Features

Code Coverage

Performance Profiling

Database Monitoring

Error Tracking

Configuration

Development Configuration

Dashboard Configuration

Troubleshooting

Dashboard Not Accessible

Tests Not Running

Code Formatting Issues

Performance Issues

Best Practices

1. Development Workflow

2. Dashboard Usage

3. Code Quality

4. Performance Monitoring

Integration with IDEs

VS Code Integration

JetBrains Integration


The azu dev command provides an enhanced development environment with dashboard, testing, formatting, and monitoring capabilities.

Next Steps:

Last updated