Skip to content

Latest commit

 

History

History
45 lines (27 loc) · 1.63 KB

README.md

File metadata and controls

45 lines (27 loc) · 1.63 KB

data.gouv.fr support application.

Installation

  • cp .env.dist .env
  • Adjust the .env file with development settings
  • npm install

Development

  • npm run start:dev

Configuration

In order to change the displayed question tree, one might change the config/question-tree.yaml file.

This file is written in YAML.

It starts with a top-level question, consisting in a title, and choices on which the user can click.

Each item of the choices attribute consists in a label displayed on the webpage, and a link which can be a new question, or an answer.

A new question follows the same structure as the top-level question.

An answer can be of three types :

  • a path attribute, which must be a relative path to a markdown file containing the content to display
  • a content attribute, which is the raw html displayed content
  • a form attribute, which represents a ticket submission form, with the following properties:
    • title: the contact form title, displayed at the top
    • recipient: the target email address handled by Etalab's Zammad

Tests

  • npm run test

Architecture decision records

  1. Record architecture decisions
  2. Domain-driven design
  3. Server-side rendering

Inspirations