/covid19-auto-generator

Générateur d'attestation de déplacement COVID19 pré-configuré, multi-utilisateurs, utilisable en 2 clics

Primary LanguageJavaScript

COVID-19 AUTO GENERATOR

The aim of this project was to create a pre-configured COVID-19 derogatory travel certificate (October 2020 version) generator to be used by one or more people.

Once configured, it allows you to generate an authorization in two clicks.

Please note, you use this generator at your own risk, I decline all responsibility in the event of an error resulting in a penalty

Demo

demo gif

Online demo on https://kasty.github.io/

Usage

The application is already built. You can deploy the public folder on your webserver after having configured the user's data.

  • Clone the repository
  • Edit the config file at public/users.json Example :
{
  "users": {
    "robert": {
      "profile": {
        "firstname": "Robert",
        "lastname": "Tudor",
        "birthday": "24/06/1978",
        "placeofbirth": "Nantes",
        "address": "35 rue de l\"épée",
        "zipcode": "44000",
        "city": "Nantes",
        "emoji": "🐼"
      },
      "settings": {
        "choices": [
          "famille",
          "achats",
          "sport_animaux",
          "sante",
          "handicap"
        ],
        "defaultChoice": "achats"
      }
    },
    "janine": {
      "profile": {
        "firstname": "Janine",
        "lastname": "Tudor",
        "birthday": "01/05/1975",
        "placeofbirth": "Biarritz",
        "address": "35 rue de l\"épée",
        "zipcode": "44000",
        "city": "Nantes",
        "emoji": "🐙"
      },
      "settings": {
        "choices": [
          "travail",
          "famille",
          "achats",
          "sport_animaux",
          "sante",
          "missions"
        ],
        "defaultChoice": "travail"
      }
    }
  },
  "defaultUser": "robert"
}
  • Deploy the content of the build folder on your webserver
  • It is advisable to add protection to the file so as not to expose your personal data. For example, you can add an .htaccess file

Contribute

  • Clone the repository
  • Install the dependencies :
npm install
  • Start the local node server :
npm start

See Create React App documentation below for more informations

  • To build your app run
npm run build

Then host the build folder on a webserver and enjoy the app on your phone !

About Create React App

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.