Skip to content

benjamin-joham/mmp2b-plantpal

Repository files navigation

PlantPal

a project by Benjamin Joham, Daniela Kubesch and Johanna Repp

Throughout the whole project we do pair programming.

Dokku

https://plantpal.projects.multimediatechnology.at/

Brigitte fragen

Rubocop Options

Simple format
>rubocop --format simple

Simple format written to result.txt
> rubocop --format simple -o result.txt

Useful for CI environments. It will create an HTML report
>rubocop --format html -o rubocop.html

Usage of Gems

annotate

link annotate-github

How to

run annotate in root of your project

What's it doing?

inserts the db schema as comments in your model.rb file
changes model files!

railroady

link railroady-github

How to

run rake diagram:all to create a models_complete.svg

What's it doing?

UML diagram generation for Rails projects, capable of analyzing existing models and controllers

lib-vips

link lib-vips

devise

link devise-github

friendly_id

link friendly_id-github

How to

Add a slug column to the desired table (e.g. Users) rails g migration AddSlugToUsers slug:uniq

Generate the friendly configuration file and a new migration rails generate friendly_id

What's it doing?

With FriendlyId, it's easy to make your application use URLs like: http://example.com/states/washington

instead of: http://example.com/states/4323454

brita

link brita-github

searchkick

link searchkick

How To

FIXME: probably need to install and start elasticsearch with brew

Active Admin

link Active Admin

How to

  1. rails generate actice_admin:install
  2. rails db:migrate or rake db:migrate
  3. start server again rails server

letter_opener

link letter_opener-github

How to

Set the delivery method in config/environments/development.rb

config.action_mailer.delivery_method = :letter_opener config.action_mailer.perform_deliveries = true

Configuration

LetterOpener.configure do |config|
  # To overrider the location for message storage.
  # Default value is <tt>tmp/letter_opener</tt>
  config.location = Rails.root.join('tmp', 'my_mails')

  # To render only the message body, without any metadata or extra containers or styling.
  # Default value is <tt>:default</tt> that renders styled message with showing useful metadata.
  config.message_template = :light
end

JOBS

rails is able to run "jobs" once a day/once per hour

Aufbau

Models:

  • User
  • Plants

Controller:

Views:

Serializer:

Mailer:

API's

trefle.io

plant.id

About

MMP2b - FH Salzburg - Plantpal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •