Skip to content
Snippets Groups Projects
Select Git revision
  • open-graph
  • main default protected
  • traites
  • 111-afficher-jauge-meme-si-on-selectionne-un-filtre
  • 89-filtres-lois-totalement-partiellement-appliquees-lever-l-ambiguite
  • icones_js
  • 24-precision-methode-de-calcul-des-taux
  • amelioration_barre_filtres
  • ui-statistiques-taux-application-lois
  • fix-gitlab-link
  • bugfix_filters_sync
  • show_dates
  • change-jours-en-mois
13 results

echeancier

  • Clone with SSH
  • Clone with HTTPS
  • Dorine Lambinet's avatar
    0ef0f3a2
    History

    Échéancier Leximpact

    French law enforcement tracking software

    Back-Office Database Creation

    Using Debian GNU/Linux

    As root user:

    apt install postgresql
    apt install libpq-dev
    su - postgres
    psql

    Using MacOS

    brew install postgresql
    psql postgres

    For everybody

    CREATE USER echeancier WITH PASSWORD 'echeancier';
    CREATE DATABASE echeancier WITH OWNER echeancier;
    \q
    logout # For Debian only
    
    cd packages/back-office
    npm run configure
    cd ../../

    Generating Static Front-Office site & Fragments

    cd packages/front-office
    npm run build
    npx tsx src/scripts/generate_fragments.ts https://barometre.leximpact.dev/

    Updating in_situ Project Using Assemblée Nationale Web Site

    cd /tmp/
    wget -r https://www.assemblee-nationale.fr/dyn/16/dossiers/calculer_retraite_base_nonsalaries_agricoles
    # Wait a few minutes, then:
    wget -r https://www.assemblee-nationale.fr/dyn/16/dossiers/alt/calculer_retraite_base_nonsalaries_agricoles

    After a few minutes (in another terminal or after having stopped wget):

    cd [...]/echeancier/packages/in_situ/
    cp /tmp/www.assemblee-nationale.fr/dyn/16/dossiers/calculer_retraite_base_nonsalaries_agricoles templates/dossiers/calculer_retraite_base_nonsalaries_agricoles.html
    cp /tmp/www.assemblee-nationale.fr/dyn/16/dossiers/alt/calculer_retraite_base_nonsalaries_agricoles templates/dossiers/alt/calculer_retraite_base_nonsalaries_agricoles.html
    # wget -O templates/dossiers/index.html https://www.assemblee-nationale.fr/dyn/16/dossiers
    rsync -av --delete --exclude videos/ /tmp/www.assemblee-nationale.fr/assets/ static/assets/
    rsync -av --delete /tmp/www.assemblee-nationale.fr/dyn/assets/ static/dyn/assets/
    find static/ -name "*\?*"
    rm static/dyn/assets/fonts/Slick/slick.eot\?
    rename -- 's/\?.*$//' static/dyn/assets/fonts/*/*
    rsync -av --delete /tmp/www.assemblee-nationale.fr/dyn/css/ static/dyn/css/
    rsync -av --delete /tmp/www.assemblee-nationale.fr/dyn/es6/ static/dyn/es6/
    rsync -av --delete /tmp/www.assemblee-nationale.fr/dyn/js/ static/dyn/js/
    
    wget -O templates/cec/index.html https://www.assemblee-nationale.fr/dyn/16/organes/delegations-comites-offices/cec/

    Installing

    git clone https://framagit.org/french-tax-and-benefit-tables/baremes-ipp-edit.git
    cd baremes-ipp-edit/
    npm install

    Create a .env file:

    cp example.env .env

    Then adapt this .env file to your needs.

    Developing

    npm run dev
    
    # or start the server and open the app in a new browser tab
    npm run dev -- --open

    Building

    To create a production version of your app:

    npm run build

    You can preview the production build with npm run preview.

    To deploy your app, you may need to install an adapter for your target environment.