/pia

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.

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

Le logiciel PIA / The PIA Software

Le logiciel PIA est un outil distribué librement par la CNIL afin de faciliter la réalisation d’analyses d’impact sur la protection des données prévues par le RGPD. Version web front office de l’application PIA à déployer sur un serveur afin d’en donner l’accès via un navigateur web. Ce projet est généré avec Angular CLI.

The PIA software is a free tool published by the CNIL which aims to help data controllers build and demonstrate compliance to the GDPR. Front office of the PIA application to be deployed on a server in order to access it through a web browser. This project was generated with Angular CLI.

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|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Build for production

First you need to rename the file src/environments/environment.prod.ts.example to src/environments/environment.prod.ts. Then set the version number inside this file. And use the command ng build --prod --build-optimizer or yarn prod for a production build.

If you have memory issue while building try this command: node --max-old-space-size=1024 node_modules/@angular/cli/bin/ng build --prod

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests with Cypress.io

Run yarn e2e to execute the end-to-end tests via Cypress. Before running the tests make sure you are serving the app via ng serve.

Run in production mode

Run ng build --prod --build-optimizer or yarn prod Put dist/ directory which is generated by ng build into your www/ directory (like /var/www/html for default in Apache)

If you have memory issue while building try this command: node --max-old-space-size=1024 node_modules/@angular/cli/bin/ng build --prod

Generate a static documentation of PIA with Compodoc

Run npm run compodoc or yarn run compodoc to generate the documentation in your documentation directory

Further help

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