This folder contains a minimal Angular application for the AI-Assisted Developer Evaluation Test.
- Node.js (v18+ recommended)
- npm or yarn
- Angular CLI (install globally:
npm install -g @angular/cli)
cd frontend
npm installnpm startThe Angular app will run on http://localhost:4200
Navigate to http://localhost:4200 in your browser. The application will automatically reload if you change any source files.
If you're working on frontend only, you must use the provided mock API:
-
Start the Mock API first (in a separate terminal):
cd mock-api npm install npm startMock API runs on http://localhost:3001
-
Then start the frontend (in another terminal):
cd frontend npm start -
Configure your service to use the Mock API base URL:
http://localhost:3001
π See ../mock-api/README.md for full API documentation
Visit http://localhost:3001/tasks to see the initial task structure.
If you're implementing both backend and frontend:
-
Start your backend (in one terminal):
cd backend npm run devBackend runs on http://localhost:3000
-
Start the frontend (in another terminal):
cd frontend npm start -
Configure your service to use your backend API:
http://localhost:3000
frontend/
βββ src/
β βββ app/
β β βββ app.module.ts # Main module
β β βββ app-routing.module.ts # Routing configuration
β β βββ app.component.ts # Root component
β β βββ app.component.html # Root template
β β βββ components/ # Feature components
β β βββ home/ # Home component
β β βββ health/ # Health component
β βββ index.html # Main HTML
β βββ main.ts # Application entry point
β βββ styles.css # Global styles
βββ angular.json # Angular configuration
βββ package.json
βββ tsconfig.json # TypeScript configuration
β
Angular application bootstrap
β
Basic routing (Home and Health routes)
β
HttpClientModule imported (ready for API calls)
β
Component structure
β
Minimal global styles
You need to:
- Create a task management component
- Build forms for creating/editing tasks
- Create a service to handle API calls
- Implement proper error handling
- Add loading states for async operations
- Display tasks in a user-friendly way
npm start- Start the development servernpm run build- Build the project for productionnpm test- Execute unit tests (if implemented)
- Use Angular's Reactive Forms for form handling
- Create a service to encapsulate all HTTP calls
- Use TypeScript interfaces for type safety
- Handle loading and error states in your components
- Keep components focused and reusable
Good luck! π