Sign inSign up

ryanfox1985/group_events_rails_5

By ryanfox1985

•Updated almost 10 years ago

Example rails 5 app

Image
0

10K+

ryanfox1985/group_events_rails_5 repository overview

⁠README

Build Status Coverage Status Code Climate Dependency Status security Docker Automated build license

⁠Dependencies

  • Ruby 2.3.0
  • Rails 5

⁠Getting started

Run tests:

bundle
bundle exec rake db:setup
bundle exec rake

Run rubocop:

bundle
bundle exec rubocop

⁠Exercise

⁠Background:

A group event will be created by an user. The group event should run for a whole number of days e.g.. 30 or 60. There should be attributes to set and update the start, end or duration of the event (and calculate the other value). The event also has a name, description (which supports formatting) and location. The event should be draft or published. To publish all of the fields are required, it can be saved with only a subset of fields before it’s published. When the event is deleted/remove it should be kept in the database and marked as such.

⁠Deliverable:

Write an AR model, spec and migration for a GroupEvent that would meet the needs of the description above. Then write the api controller and spec to support JSON request/responses to manage these GroupEvents. For the purposes of this exercise, ignore auth. Please provide your solution as a rails app called exercise_YYMMDD_yourname, sent as a zip file.

Tag summary

Content type

Image

Digest

Size

321.4 MB

Last updated

almost 10 years ago

docker pull ryanfox1985/group_events_rails_5