Le registre de preuve de covoiturage est un projet beta.gouv.fr qui a pour but de certifier qu'un covoiturage a bien eu lieu. L'objectif de l'outil est d'agir en tant que tiers de confiance entre les différents acteurs du covoiturage (opérateurs, autorités organisatrices de mobilité, entreprises, régions, etc.) pour simplifier la mise en place d'incitations à destination des covoitureuses et covoitureurs. Cette Startup d'État a pour objectif d'aider à réduire l'auto-solisme et l'emprunte écologique des déplacements courts.
- Plus d'informations sur le registre de preuve de covoiturage
- Documentation générale
- Documentation technique
- Statistiques publiques
An easy way to boot the application on your local machine is by using Docker.
You will need docker
and docker-compose
.
Service | slug | ENV | URL | Folder |
---|---|---|---|---|
Frontend * | - |
APP_APP_URL | http://localhost:4200 | /dashboard |
API | api |
APP_API_URL | http://localhost:8080 | /api |
Printer | printer |
APP_PRINTER_URL | http://localhost:3000 | /printer |
Redis | redis |
APP_REDIS_URL | redis://redis:6379 | - |
Postgres | postgres |
APP_POSTGRES_URL | postgresql://postgres:post | - |
Postgres Client | pgadmin |
- | http://localhost:5050 | - |
* The Frontend doesn't run in Docker. Install NodeJS locally and run it with
yarn start
from thedashboard
folder.
⚠️ docker-compose.yml
is used inlocal
environment only
- Clone the repository and
cd
to it cp api/.env.example api/.env
- Edit the
api/.env
file docker-compose build
docker-compose run api yarn
docker-compose run api yarn run build
docker-compose run api yarn migrate
docker-compose run api yarn set-permissions
Ilos is the progressive micro-service framework behind the application.
You can clone the ilos framework locally to use different branches, tags or contribute. To do so, create the api/ilos
folder, check the dev
branch out and run yarn build
.
Workspaces are handled properly when yarn
commands are run from the /api
folder.
the current
dev
branch of the application runs on Ilosdev
branch.
cd api
git clone https://github.com/betagouv/ilos.git ilos
cd ilos
yarn
yarn run build
cd .. (api/)
yarn
yarn run build
// TODO seed users and make easy onboarding
// use SKIP_MIGRATIONS=true to skip migrations in an automated deployment process
cd api
yarn migrate
// OR
docker-compose run api yarn migrate
For all secrets, use the .env
file which is NOT COMMITED to Git.
For none secret values configuring the system, commit the ENV vars in docker-compose.yml
For static application configuration (timeout, etc.) edit/add the .ts
files in each service config/
folder.
yarn set-permissions
reset all users' permissions based on their group and roleyarn workspace @pdc/... run test
yarn cypress open
opens cypress GUIyarn cypress run
runs integration tests with cypress ( requires installation of cypress locally )
The project follows the semver specification.
An easy to use and configure GUI is bull-arena
. You can install it locally and run it to connect to the Redis
running in docker (the port is exposed to localhost).
cd {somewhere}
git clone https://github.com/bee-queue/arena.git
cd arena
npm install
vi src/server/config/index.json
{
"queues": [
{
"name": "acquisition",
"hostId": "pdc-local",
"url": "redis://:<password>@127.0.0.1:6379"
},
{
"name": "normalization",
"hostId": "pdc-local",
"url": "redis://:<password>@127.0.0.1:6379"
},
{
"name": "trip",
"hostId": "pdc-local",
"url": "redis://:<password>@127.0.0.1:6379"
},
{
"name": "carpool",
"hostId": "pdc-local",
"url": "redis://:<password>@127.0.0.1:6379"
},
{
"name": "fraud",
"hostId": "pdc-local",
"url": "redis://:<password>@127.0.0.1:6379"
},
{
"name": "campaign",
"hostId": "pdc-local",
"url": "redis://:<password>@127.0.0.1:6379"
}
]
}
cd arena
npm start
Access the GUI at http://localhost:4567
DINUM, 2017-2020.
The source code is published under Apache license 2.0.