Dématérialiser et simplifier les démarches administratives
Find a file
2017-04-21 14:51:35 +02:00
.circleci Add scss-lint to .circleci/config.yml 2017-04-20 10:35:54 +02:00
app Add human version translation for state 2017-04-21 14:51:35 +02:00
config Add the “Numbers” part of the landing page 2017-04-20 12:37:59 +02:00
db Use a non-breaking space after the “numéro” contraction 2017-04-19 11:19:53 +02:00
doc Add human version translation for state 2017-04-21 14:51:35 +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 Add human version translation for state 2017-04-21 14:51:35 +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
.scss-lint.yml Add .scss-lint.yml 2017-04-20 10:35:54 +02:00
config.ru Bootstrap Action Cable and Unicorn 2016-12-22 21:49:31 +01:00
Gemfile Add the scss_lint gem 2017-04-20 10:35:54 +02:00
Gemfile.lock Add the scss_lint gem 2017-04-20 10:35:54 +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