Skip to content
LINCnilPublic

About

Version web front office de l’application PIA à déployer sur un serveur afin d’en donner l’accès via un navigateur web | Front office of the PIA application to be deployed on a server in order to access it through a web browser.

Resources

Code of conduct

Contributing

Stars

297 stars

Watchers

35 watching

Forks

Repository files navigation

PIA Software

Introduction

The PIA software is a free tool published by the CNIL which aims to help data controllers build and demonstrate compliance to the GDPR.

The latest version of the tool can be downloaded in the Release section of this repository.

Translating the PIA Software

To translate the software, we invite you to make your changes here where the translation steps are described.

Development information

CI CodeQL

CI runs the application unit tests and Cypress tests on pushes and pull requests.

This project was generated with Angular CLI.

Package Version

See the package.json file

Prerequisites

Angular 22 requires Node.js ^22.22.3, ^24.15.0, or ^26.0.0.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run yarn test to execute the application unit tests via Karma. For a single headless run, use yarn test --watch=false --browsers=ChromeHeadless.

Running ng test without a project also targets the optional pia-i18n library, whose sources are not included in this repository. If available locally, test it separately with yarn ng test pia-i18n.

Running end-to-end tests

Start the application with yarn start, then run yarn cypress run --headless --browser chrome to execute the Cypress end-to-end tests. Use yarn e2e to open the interactive runner.

The server-configuration tests use mocked responses by default. To additionally test a real PIA backend, set CYPRESS_URL, CYPRESS_ID, and CYPRESS_SECRET in the environment before running Cypress.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

Package the application for Mac, Windows or GNU/Linux

Mac:

You must set the ENV variables APPLE_ID, APPLE_APP_SPECIFIC_PASSWORD and APPLE_TEAM_ID inside a .env file at the root of the project.

yarn electron:mac

Windows:

CSC_LINK=../path_to_your/file.pfx CSC_KEY_PASSWORD="Your PFX file password" yarn electron:win

GNU/Linux:

yarn electron:linux

Publish the application to Github

See: https://www.electron.build/configuration/publish

GH_TOKEN=YOUR_GITHUB_TOKEN yarn electron:publish-to-github

PIA export & import .json format

If you need any guidance about the PIA .json file and its structure, check the dedicated documentation here

About

Version web front office de l’application PIA à déployer sur un serveur afin d’en donner l’accès via un navigateur web | Front office of the PIA application to be deployed on a server in order to access it through a web browser.

Resources

Code of conduct

Contributing

Stars

297 stars

Watchers

35 watching

Forks

Releases

Packages

Used by

Contributors

Languages