Clarification des aides liées au retour à l'activité
Switch branches/tags
61-contact-form 423-change-ruby-version 543-design-home-icon 559-printable-results 590-empty-rubric 603-add-fse-logo 603-fse 603-rebase 607-redo-sentences-in-detail 629-bug-address-form 632-bug-back-button-on-age 643-add-livereload 655-seo-phrase 656-delete-ssl-helpers 657-num-keyboard 657-show-keyboard-alloc 658-adresse-timeout 660-checkbox-question-others 661-v1-api-2 661-v1-api 662-https-host-api 663-authent-in-swagger 665-add-api-geo 666-api-aid-detail 667-translate-api 668-make-paginable-api 671-apidocs-uptodate 672-whitelist-api 673-api-who-does-what 673-modify-others 675-protect-api 676_test_models 677-depreciate-harki-api 678-creating-stats 679-redo-home 681-form-alloc 682-address-with-postcode 683-results-with-qpv 684-change-link-color 685-modify-header-color 685afterrevert 688-loading-wheel 690-remove-numbers-on-home 690-rule-remove-accent 692-recentering-cta 695-stats-nb-of-visit 699-slow-2 699-slow-feature-test 700-rulecheck-error 701-google-places-autocomplete 703-rails-updgrade 705-see-more 712-form-correct-colors 713-measure-saved-time 714-google-analytics-filtering 716-params-in-analytics 718-vertical-bar 719-bigger-euro 721-turbolinks-reset 723-previous-button-reload-bug 725-bug-popup 727-apidocs-bug 731-padding-detail-button 733-bug-alloc-back-button 735-time-saved-by-advisors 736-error-message-modification 736-modify-error-msg 737-replace-address-in-recap 744-bug-zrr-config 744-bug-zrr 744-bug-zrr2 744ter 745-jaugebug 749-statuses 749-system-stats 752-welcome-page-cached 753-install-pghero 754-pghero-assets 755-cacheonly-access 756-old-browser-detection 756-restore-loading-bar 756b-restoration-browser-depreciation 756c-depreciation-warn 757-cacheadmin 760-bug-zrr 764-enlarge-axisY-stat 768-bug-time-won 770-filter-by-need 771-api-filtres 772-bug-stats-ga 777-filter-in-results 777-filter2 777-filters3 778-recap-situation-design 780-video-modal 780-video 789-bug-administrate 792-filter-cache 793-filter-tag-description 794-bug-of-amount 795-please-wait-again 796-unfold 797-no-aid 798-hide-ineligible 799-event-detail-eligible-uncertain-ineligible 800-uglifier 802-situation-recap 803-change-disclaimer 805-only-tag-inputted 806-responsive-redo 807-bug-click-recap 808-remove-animations 811-open-close-buttons-css 812-results-reviewed 813-mobile-results 814-temp-hide-filters 814b-hack-imoprovment 815-numpad-age-question 815b-bug-pad-5-digit 816-old-material 817-alignements 819-bug-grade-quesiton-keyboard 819b-nav-keyboard 820-ga-down 820b-ga-bug 821-tracking-filters 822-redo-scss-fw 823-plural-and-singular 824-a11y-clara-logo 824-accessible-logo 826-cache-index-page-again 827-rails-52 830-bugnav 832-ko-to-redux 834-api-functional-errors 835-api-functional-errors 835-api-null-field-exclusion 836-maxload 837-ping-endpoint 838-retablir-tracking 838b-retablir-tracking 839-bug-unselect-filter 840-bug-on-filter-selection 842-bug-tracking-filter 842b-tracking-filter-debug 844-hj-id 846-api-response-example 848-include-op 849-api-profiling 849b-profile-optional 849c-optional-profiling 849d-debug-tojson 849e-oj 849f-tryoj2 849g-api-hard-optimization 853-bug-sentry 853-form-other-question 855-api-imbrication 856-remove-ping-auth 858-rehydratation 858b-rehydratation-bugfix 859-correction-des-statistiques 859b 864-arg-error 865-remove-ata 867-tests-api 868-test-cov 868c-coverage 870-bannert-alert-cookies 870-david-initial 870-david 870-rebase 871-typo-of-contact-form 874-form-frontend-validation 876-three-level-filters 880-form-radiobuttons 881-form-pleasewait 882-form-entity 883-mandatory-contract-type 887-a11y-fse 889-activate-or-deactivate-cookies 890-crud-on-3-level-filters 891-bug-zrr-f 892-explicit-filterchild-naming 893-bug-on-poscode 894-api-call-custom-filters 895-visual-foreach-filters 895b-bug 896-confidentiality 898-mobile-banner-alert 904-toggle-ga-hj 906-meta-gsc 908-button-inversion 908-opacity-inversion 909-mobile-button 912-hp-optimisation 914-dependance-cdn 914-self-hosted-font 914b 915-bug-seo-missing-tags 916-compression 920-async-defer 922-bug-spe-contract 925-cgu-correction 926-bug-css-overflow 927-meta-max 928-bug-banner 928b-buggy-banner 928c-bugg-banner-localstorage 929-meta-gsc 931-b 931-tests-gsc 933-bug-cgu 933-bug-cgu2 935-tests-cookies 936-change-email-dest 937-mailer 937-mailjet-again 937b-reply-to-mailjet 938-email-object 939-email-spec 939-email-test 942-brp-filter-in-api 942-level3filters 943-optimized-js 945-remove-turbolinks 946-make-turbolinks-great-again 949-bug-ga 949b-bug-ga-2 953-rgpd-link 954-detect-old-material 954b-old-material 955-for-label 955-missing-for 956-breadcrumb-indexation 956b-seo-breadcrumb 958-foit-by-fout 958-foit-to-fout 958-fout 959-remove-momentjs 960-bug-display-order-aids 963-h1 963-syntax 967-default-tabindex 969-display-all-level3-filters 970-bug-logo-on-mobile 972-lookforaids 973-error-cache 976-deactivate-reactivate-hj-ga 979-turbolinks-again 980-bug-order-display-aids 982-remove-bdd-call 987-async-mig-loading 992-js-callback-called-twice 993-focus-first-answer 993b-meta-image-typo 995-bug-outline 996-not-amongst 997-bug-colors 997b-colors-bug 997c-bug-color 998-tests-in-error 1001-cookies-buttons 1001-final 1001-radio-buttons 1001-radios 1001rebased-cookies-in-rgpd 1002-redo-result-page 1003-rename-leveled-filters 1003b-rename-leveled-filter-debug 1004-email-subject 1006-tanaguru-hp 1006b-seo-hp-tanaguru 1007-add-cadre-var 1008-breacrumb 1009-bug-title-detail-mobile 1009b-detail-title 1010-optimisation-inscription 1010b-inscription-question-seo 1011-category-question-seo 1011-optimisation-category-question 1012-optimisation-allocation-question 1012b-seo-alloc 1013-bug-help-alloc 1014-optimisation-are-questions 1014b-seo-are-question 1015-optimisation-age-question 1015b-seo-age-quesiton 1016-optimisation-grade-question 1016b-tanaguru-grade-question 1016c-aria-current-page-not-allowed-on-ahref 1016d-removed-aria-current 1017-optimisation-other-question 1017b-other-question-tanaguru 1018-optimisation-adresse-question 1018b-tanaguru-adress-question 1019-noindex-on-result-page 1021-bug-radiobuttons-mobile 1021b-bug-mobile-radiobuttons 1022-design-better-alloc 1024-rollback-version 1025-bug-mobile-accept-all-cookies 1026-bug-old-material 1032-are-question-optim 1033-admin-custom-filters 1035-test-cookies 1036-temp-dis-init-cache 1038-bug-de-prod 1040-missing-test 1041-ordre-affichage-obligatoire 1042-adress-question-better 1042b-adress-help 1043-design-decalage-logo-fse 1044-clara-at-pe-fr 1045-rename-include 1046-bug-all-aids 1050-teaspoon 1051-track-original-request 1051b 1051c-req-origin 1052-detect-pe-traffic-from-server 1055-rails-5211 1058-search-or 1059-pagination-prevnext-bug 1060-back-button-when-no-pagination 1062-track-search 1063-responsive-search adress-service-spec age-service-spec api-asker-service-spec azerljk cookies-modal fix_params_in_google_analytics hash-service-spec improved-test-suite master newrelic_only_in_production revert-42-701-google-places-autocomplete
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
lib
public
spec
vendor/assets
.gitignore
.jshintrc
.prettierrc
.rspec
.ruby-version
CHANGELOG.md
CONTRIBUTING.md
Gemfile
Gemfile.lock
Guardfile
LICENSE
Procfile
README.md
Rakefile
config.ru

README.md

CLARA

CLarification des Aides pour le Retour à l'Activité.

Installation from scratch sur un poste de dev

Prérequis

  • ruby 2.4.1, installé de préférence avec rbenv
  • postgre 9.5
  • git 2

Installation

Clonez clara depuis GitHub, puis

$ cd clara
$ bundle install

Récupérez le fichier d'environnement .env auprès des administrateurs, puis

$ bin/rails db:setup

Configuration de PG

Une fois Postgre installé, dans postgresql.conf, ajoutez les lignes suivantes :

shared_preload_libraries = 'pg_stat_statements'
pg_stat_statements.track = all

Dans le fichier pg_hba.conf, ajoutez les lignes suivantes :

local  all  ara trust
host  all   ara 0.0.0.0/0  trust
host  all   ara ::/0 trust

Lancer le site en local

$ bin/rails server

le site est disponible sous http://localhost:3000

Dans un autre terminal, lancer

$ bundle exec guard -P livereload

Pour ne pas avoir besoin de rafraîchir manuellement le navigateur à chaque changement de code.

Lancement des tests unitaires back

$ bundle exec spring rspec

Lancement des tests unitaires front

$ bin/rails jasmine

Puis ouvrir / rafraîchir le navigateur sur localhost:8888

Outils

Clara est un projet Open Source sous licence AGPL 3.0. Ce statut nous permet d'être soutenu gratuitement. Nous les en remercions.

Sentry : error tracking

Sentry nous permet de détecter au plus vite les erreurs en production.

Browserstack : Live, Web-Based Browser Testing

Browserstack permet de tester Clara sur différents navigateurs.

Workflow

Voir CONTRIBUTING.md