百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

pia-back

> 编程语言
开源

使用 Ruby on Rails 开发的程序,为 PIA 应用程序提供了 RESTful API。

172 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

使用 Ruby on Rails 开发的程序,为 PIA 应用程序提供了 RESTful API。

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.

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

  • pia (front-end) application
  • Ruby 3.4.x
  • Rails 8.0.x
  • PostgreSQL 13+

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.

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

Rails 8 - How to migrate your attachments from Carrierwave to ActiveStorage

This migration utility converts file attachments from the legacy Carrierwave storage system to Rails' ActiveStorage. Note that this migration only works for locally stored files and requires the correct file structure within the data/attachment/attached_file/ directory.

RAILS_ENV=production bin/rake active_storage_migration

Issues· 14 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Ruby

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言