This is the frontend for the HMCTS task management system. It allows users to create, view, update, and delete case tasks via a web interface.
- Create new case tasks
- View a list of all tasks
- View a task details
- Update task status and description
- Delete tasks with confirmation
- Error handling and validation
Set the following environment variables for local development:
| Variable | Suggested Value | Purpose |
|---|---|---|
| API_BASE_URL | http://localhost:4000 |
Port on which the API will run |
- Install dependencies:
yarn install
- Build frontend assets:
yarn webpack
- Start the development server:
The app will be available at https://localhost:3100.
yarn start:dev
src/main/routes/– Express route handlers for create, delete, update, and home pagessrc/main/views/– Nunjucks templates for rendering pagessrc/main/services/– Business logic for taskssrc/main/types/– TypeScript types and interfacessrc/main/config/– API and environment configuration
- Unit and functional tests are located in the
test/directory. - To run tests:
yarn test