Dématérialiser et simplifier les démarches administratives
Find a file
gregoirenovel de01914fa7 Fix the where clause in Stats
Now properly show the last 90 days of data instead
of strict quarters.

With the previous code, on the
1st of january, april, july and october, only one
day of data would be shown.
2017-04-11 15:29:18 +02:00
app Fix the where clause in Stats 2017-04-11 15:29:18 +02:00
config Make Stats a public page 2017-04-11 15:29:18 +02:00
db Delete some environment-based conditions 2017-04-10 16:17:33 +02:00
doc Update the apipie_examples JSON so that it shows champs_private 2017-03-27 11:36:37 +02:00
lib Files should end with a new line 2017-04-04 16:59:38 +02:00
log First Commit 2015-08-10 11:05:06 +02:00
public Fix features tests 2016-11-15 11:01:58 +01:00
spec DossierLink: add edition template 2017-04-11 13:54:33 +02:00
vendor/assets Files should end with a single new line 2017-04-04 16:59:39 +02:00
.editorconfig Add a .editorconfig file 2017-04-04 17:32:36 +02:00
.gitignore Remove rubocop for now 2017-03-22 11:07:48 +01:00
.haml-lint.yml Add .haml-lint.yml 2017-04-10 17:55:55 +02:00
.rspec First Commit 2015-08-10 11:05:06 +02:00
.ruby-version Migrate to ruby 2.3.1 2016-11-07 11:23:21 +01:00
circle.yml Add HAML linting to the CI process 2017-04-10 17:55:56 +02:00
config.ru Bootstrap Action Cable and Unicorn 2016-12-22 21:49:31 +01:00
Gemfile Add haml-lint to the Gemfile 2017-04-10 17:55:55 +02:00
Gemfile.lock Add haml-lint to the Gemfile 2017-04-10 17:55:55 +02:00
Guardfile Guardfile: watch services directory 2017-04-11 14:51:27 +02:00
LICENSE.agpl-3.0.txt Add license 2017-04-03 11:05:37 +02:00
Rakefile Add new deploy tasks 2016-07-05 16:12:10 +02:00
README.md Fix some typographic mistakes 2017-04-10 18:14:37 +02:00
rubocop.yml Rubocop parameter 2015-08-11 15:08:33 +02:00

TPS - TéléProcédure Simplifiée

Context

TéléProcédure Simplifiée, ou TPS pour les intimes, est une plateforme 100 % web et 0 % email, conçue afin de répondre au besoin urgent de l'État d'appliquer la directive sur le 100 % démat' à l'horizon 2018 pour les démarches administratives.

Dépendances

Tous environnements

  • postgresql

Tests

  • PhantomJS

Initialisation de l'environnement de développement

Afin d'initialiser l'environnement de développement, éxécutez la commande suivante :

bundle install

Création de la base de données

Les informations nécessaire à l'initialisation de la base doivent être pré-configurées à la main grâce à la procédure suivante :

su - postgres
psql
> create user tps_development with password 'tps_development' superuser;
> create user tps_test with password 'tps_test' superuser;
> \q

Afin de générer la BDD de l'application, il est nécessaire d'éxécuter les commandes suivantes :

rake db:create db:schema:load db:migrate
rake db:create db:schema:load db:migrate RAILS_ENV=test

Exécution des tests (RSpec)

Pour exécuter les tests de l'application, plusieurs possibilités :

  • Lancer tous les tests

      rake spec
      rspec
    
  • Lancer un test en particulier

      rake spec SPEC=file_path/file_name_spec.rb:line_number
      rspec file_path/file_name_spec.rb:line_number
    
  • Lancer tous les tests d'un fichier

      rake spec SPEC=file_path/file_name_spec.rb
      rspec file_path/file_name_spec.rb
    

Linting

  • Linter les fichiers HAML : bundle exec haml-lint app/views/

Régénérer les binstubs

bundle binstub railties --force
rake rails:update:bin