Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

digitalservicebund/digitalcheck-tool-finder

Repository files navigation

Deprecated: Digitalcheck Werkzeugfinder aka Tool Finder

⚠️ Deprecated: This repository is no longer maintained since it is superseded by digitalcheck-apps.

Prerequisites

Node.js

We aim to use the current active LTS version of nodejs, which is V20 at the time of writing. There is a .node-version file to simplify setup using nodenv.

Testing

For E2E and a11y testing with Playwright you will need to install the supported browsers:

npx playwright install

Git Hooks

For the provided Git hooks you will need to install lefthook (git hook manager):

brew install lefthook
./run.sh init

The following hooks are specified in the lefthook.yml:

  • commitlint - write conventional commit messages
  • lint - avoid committing code violating linting rules
  • format - avoid committing wrongly formatted code

Before pushing, the following checks are additionally ran:

  • licenses-audit - uses license-checker to verify depency licenses

security.txt

This template contains a security.txt, where you probably want to update the expiration date. The following entries may also be added:

Policy: https://raw.githubusercontent.com/digitalservicebund/<<REPO_NAME>>/main/SECURITY.md
Canonical: https://<<PROJECT_URL>>/.well-known/security.txt

Development

From your terminal:

npm run dev

This starts your app in development mode, rebuilding assets on file changes.

Testing

The application has

Test commands

  • Run unit tests: npm test
  • Run unit tests with watcher: npm test -- --watch
  • Run E2E tests: npm run test:e2e
  • Run accessibility tests: npm run test:a11y
  • Run all tests: npm run tests

Code quality checks (linting & formatting)

The project uses ESLint for linting and Prettier. for formatting.

Commands

  • Check formatting: npm run format:check
  • Autofix formatting issues: npm run format:fix
  • Check lint: npm run lint:check
  • Autofix lint issues: npm run lint:fix
  • Check style (formatting & linting): npm run style:check
  • Autofix style issues (formatting & linting): npm run style:fix

Build and start

Build the app for production:

npm run build

Preview the production build:

npm run start

Architecture Decision Records

The docs/adr directory contains architecture decisions. For adding new records the adr-tools command-line tool is useful but not strictly necessary:

brew install adr-tools

Contributing

🇬🇧 Everyone is welcome to contribute the development of the digitalcheck-tool-finder. You can contribute by opening pull request, providing documentation or answering questions or giving feedback. Please always follow the guidelines and our Code of Conduct.

🇩🇪
Jede:r ist herzlich eingeladen, die Entwicklung der digitalcheck-tool-finder mitzugestalten. Du kannst einen Beitrag leisten, indem du Pull-Requests eröffnest, die Dokumentation erweiterst, Fragen beantwortest oder Feedback gibst. Bitte befolge immer die Richtlinien und unseren Verhaltenskodex.

Updating the content

To update texts or links, change data.ts.

To add images, upload them to /resources/img and edit data.ts with the corresponding path. Don't forget to add a fitting alt text.

Contributing code

🇬🇧 Open a pull request with your changes and it will be reviewed by someone from the team. When you submit a pull request, you declare that you have the right to license your contribution to the DigitalService and the community. By submitting the patch, you agree that your contributions are licensed under the MIT license.

Please make sure that your changes have been tested befor submitting a pull request.

🇩🇪
Nach dem Erstellen eines Pull Requests wird dieser von einer Person aus dem Team überprüft. Wenn du einen Pull-Request einreichst, erklärst du dich damit einverstanden, deinen Beitrag an den DigitalService und die Community zu lizenzieren. Durch das Einreichen des Patches erklärst du dich damit einverstanden, dass deine Beiträge unter der MIT-Lizenz lizenziert sind.

Bitte stelle sicher, dass deine Änderungen getestet wurden, bevor du einen Pull-Request sendest.

About

Digitalcheck Werkzeugfinder is a simple web-application to enable policy makers in the german government to find the right tool for visualisation.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published