Skip to content

Programme développé avec le framework RubyOnRails mettant à disposition une API RESTful à destination des outils PIA et PIA-APP. | Program developped with RubyOnRails providing a RESTful API for the PIA and PIA-APP applications.

License

Notifications You must be signed in to change notification settings

LINCnil/pia-back

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d009322 · Jan 30, 2025
Jan 30, 2025
Jan 31, 2024
Jan 25, 2023
Jan 31, 2024
Feb 19, 2024
Jan 25, 2023
Jul 31, 2017
Aug 31, 2023
Jan 31, 2024
Jul 31, 2017
Jun 21, 2022
Jan 24, 2024
Jan 31, 2024
Jan 29, 2024
Jan 30, 2025
Dec 6, 2018
Dec 6, 2018
Dec 6, 2018
Dec 13, 2024
Jan 30, 2025
Nov 22, 2017
Jan 25, 2024
Jul 31, 2017
Jul 31, 2017
Oct 25, 2018

Repository files navigation

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. PIA-BACK est développé avec le framework RubyOnRails mettant à disposition une API RESTful à destination des outils PIA et PIA-APP.

The PIA software is a free tool published by the CNIL which aims to help data controllers build and demonstrate compliance to the GDPR. PIA-BACK is developped with RubyOnRails providing a RESTful API for the PIA and PIA-APP applications.

Rails tests CodeQL CodeFactor Rails Style Guide Rails Style Guide

Wiki for a production environment

You can follow the wiki for a full production installation of the pia (frontend) and pia-back (backend) applications on an Ubuntu server.

Requirements

System requirements

  • CPU : i5
  • Ram: 4Go
  • Disk Space : 20Go
  • OS : preferably Linux but other OS works as well

Ruby installation

See the Install Ruby page in the Wiki.

PostgreSQL installation

See the Install PostgreSQL page in the Wiki.

Run the application in a development environment

  • bin/rails s your server will be accessible with the URL localhost:3000

  • You can specify the option -b to bind to a public IP address or domain name and -p to use a different port.

    For example: bin/rails s -b 123.456.789.101 -p 8080 your server will be accessible with the URL 123.456.789.101:8080

  • Then, in the pia (front-end) application, use this URL to enable the server mode.

  • Fill the field in "Tools" > "Settings"

  • Every user will have to fill the server URL, the client ID and the client SECRET fields to access the authentication interface.

PIA Settings

How to update to the latest version in a development environment

Go to the folder pia-back : cd pia-back

Update the repository : git pull

Update the dependencies : bundle install

Update the database : bin/rake db:migrate

About

Programme développé avec le framework RubyOnRails mettant à disposition une API RESTful à destination des outils PIA et PIA-APP. | Program developped with RubyOnRails providing a RESTful API for the PIA and PIA-APP applications.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published