petities/petitions.eu

View on GitHub
README.rst

Summary

Maintainability
Test Coverage
README
======

.. image:: https://codeclimate.com/github/petities/petitions.eu/badges/gpa.svg
   :target: https://codeclimate.com/github/petities/petitions.eu
   :alt: Code Climate

.. image:: https://codeclimate.com/github/petities/petitions.eu/badges/coverage.svg
   :target: https://codeclimate.com/github/petities/petitions.eu/coverage
   :alt: Test Coverage

.. image:: https://codeclimate.com/github/petities/petitions.eu/badges/issue_count.svg
   :target: https://codeclimate.com/github/petities/petitions.eu
   :alt: Issue Count

.. image:: https://semaphoreci.com/api/v1/projects/f50e2ded-59d5-452d-bf8d-abd3e7dd9648/645425/shields_badge.svg
   :target: https://semaphoreci.com/petities/petitions-eu
   :alt: Build Status

* Ruby version 2.4.10

* System dependencies

    bundle install

* Configuration


* Database creation

    rake db:create

* Database initialization

    rake db:setup

* How to run the test suite

    rake test

* Services (job queues, cache servers, search engines, etc.)

    sidekiq

    redis

* Deployment instructions

* I18n updates

Find out which translation keys are missing

    I18n-tasks missing

Add the missing translation keys

    I18n-tasks add-mising

Find out which translation keys are unused

    I18n-tasks unused

Create the first users
######################

The AdminUser is used for access to ActiveAdmin. To create the first one:

* start a console: ``bundle exec rails c``
* create the AdminUser: ``AdminUser.create(email: 'admin@example.com', password: 'password')``

The User is used for the application itself. To create the first one:

* start a console: ``bundle exec rails c``
* create the AdminUser: ``user = User.create(email: 'admin@example.com', password: 'password', confirmed_at: DateTime.now)``
* apply the ``:admin`` role to the newly created user: ``user.add_role(:admin)``