Set Up Frontend
This project is an Angular-based frontend application designed to manage firmware, execute SQL queries and monitor jobs. It leverages Bootstrap for styling and AG Grid for dynamic data visualization.
Technologies Used
- Framework: Angular 17
- UI Components: Bootstrap 5, NG Bootstrap
- Grid System: AG Grid
- Code Editors: Ace Editor, CodeMirror
- State Management & Services: RxJS, HttpClient
Installation & Setup
Prerequisites
The frontend requires Node.js 24 and npm 11, which are managed automatically via mise (see the Toolchain guide). No global Angular CLI installation is needed, as all build and serve scripts use the local Angular CLI installed in node_modules.
Installation
Install the pinned frontend dependencies from package-lock.json:
mise run install:frontend
# Or directly via npm:
npm ci
Running the Application
Start the local development server at http://localhost:4200/:
mise run frontend:start
# Or directly via npm:
npm start
Building the Application
Compile the project for production:
mise run frontend:build
# Or directly via npm:
npm run build
Linting
Run ESLint across TypeScript and template files:
mise run lint:frontend
# Or directly via npm:
npm run lint
To connect to the backend Docker container from your local environment, you must update the backend URL in the config.json file.
{
"frontend": {
"baseUrl": "http://localhost:5000/"
}
}
Project Structure
Core Modules
- App Module (
app.module.ts)- Configures core dependencies and initializes services.
- Routing Module (
app-routing.module.ts)- Defines routes and navigation logic.
Main Components
| Component | Description |
|---|---|
| Firmware Vault | Manages firmware and product data |
| Data Explorer | Provides an SQL query interface for data exploration |
| Jobs Dashboard | Displays job status and execution history |
| Navigation Bar | Handles application navigation |
Routing Configuration
The application uses Angular's RouterModule (app-routing.module.ts) to define routes. Below are the main routes:
const routes: Routes = [
{ path: '', redirectTo: 'firmware-vault', pathMatch: 'full' },
{ path: 'firmware-vault', component: FirmwareVaultComponent },
{ path: 'data-explorer', component: DataExplorerComponent },
{ path: 'jobs', component: JobsComponent },
{ path: 'jobs/detail/:id', component: JobsDetailComponent },
];
Key Features
- SQL Query Builder: Allows users to execute SQL queries dynamically.
- Firmware Management: Provides an interface to manage firmware files.
- Job Monitoring: Enables users to track job execution status.
- Dynamic Tables: Uses AG Grid for advanced data visualization.
- Responsive UI: Built with Bootstrap for optimal user experience.