This folder contains a Node.js + Express + TypeScript backend for the AI-Assisted Developer Evaluation Test.
- Node.js (v18+ recommended)
- npm or yarn
cd backend
npm install
# Create environment file
cp .env.example .envNote: The .env file contains your local environment configuration. The .env.example template is provided in the repository.
npm run devThe backend server will run on http://localhost:3000 (as configured in .env)
npm run build
npm startOnce the server is running, verify the health endpoint:
curl http://localhost:3000/healthYou should see:
{"status": "ok"}Or open in your browser: http://localhost:3000/health
backend/
├── src/
│ ├── app.ts # Express app configuration
│ ├── server.ts # Server entry point
│ ├── controllers/ # Request handlers
│ │ └── health.controller.ts
│ ├── routes/ # API routes
│ │ └── health.routes.ts
│ ├── middleware/ # Custom middleware
│ │ └── errorHandler.ts
│ └── models/ # Data models (empty - for your implementation)
├── .env # Environment variables
├── package.json
├── tsconfig.json # TypeScript configuration
└── nodemon.json # Nodemon configuration
The .env file contains:
PORT=3000
You can modify the port if needed.
npm run dev- Start the development server with hot reloadnpm run build- Compile TypeScript to JavaScriptnpm start- Start the production server (requires build first)
You will implement the task management API in this backend. Focus on:
- Creating proper API endpoints in
routes/ - Implementing controllers in
controllers/ - Adding data models/interfaces in
models/ - Implementing validation and error handling
- Using in-memory storage (no database required)
This backend will serve as the API for your Angular frontend. Make sure to:
- Enable CORS if needed
- Test endpoints before integrating with frontend
- Follow RESTful conventions
Good luck! 🚀