A very simple test deployment can be found at on our GitHub page.
This little re-wrapping of the official digital attestation generator of the French government comes with a small set of useful features to make going out for grocery shopping easier in times of the lockdown:
- English frontend? Yes, please!
- Automatically fill your personal & location information
- In a pinch even use your current GPS location to fill your address
- Backdate your attestations to make them look like you filled them out 25 minutes ago, for those times you head out and forget to generate a new PDF
To make this little thing quickly generate forms in your own name you can use GitHub pages to deliver a fork of this, that replaces the demo data with your own data. Here's a step-by-step instruction:
Find the big Fork
button on the top of the page and click it. This will create your own copy of this repository in your GitHub account.
{
"name": "John",
"last_name": "Doe",
"dob": "01/01/2001",
"from": "City, Country",
"address": "55 Rue du Faubourg",
"city": "Paris",
"zipcode": "75008",
"reasons": "courses"
}
By default the configuration looks like this. You can change the name, address etc. to match your own data. If you want to give multiple reasons for leaving the house in your configuration you can do so using -
as a separator (e.g. travail-courses
). The available options are: travail
, courses
, sante
, famille
, sport
, judiciaire
and missions
.
Go to the Settings of your fork and scroll down until you see Github Pages
as an option item. Select the master
branch as the one to deliver the actual webpage.
That's it. If you head to https://your_github_username.io/deplacement.fr you should see the page with your details pre-filled.
Happy leaving the house in a hurry.
We gotta thank the developers the French government hired for doing the electronic attestations in the first place and their commitment to "open source code", as most of the code for this is directly ripped from Javascript that's deployed on the official website. Which also means that the attestations generated by this little page should be identical to the ones provided by the official website!
We just did some minor changes to make filling the form out much quicker. And gave the frontend an English language interface, as the English government website is so outdated that they still even claim that France isn't quarantined. 🤷♀️