Skip to content
This repository has been archived by the owner on Mar 14, 2019. It is now read-only.

malfinc/resources

Repository files navigation

Todo

  • Francises
  • highlight ask for password
  • Turn rails console access into gem

Notes

Making a new resource

  1. Create a route in config/routes.rb
  2. Create a controller in app/controllers/{version}/{plural(name)}_controller.rb
  3. Create a policy in app/policies/{version}/{name}_policy.rb
  4. Create a instance decorator in app/decorators/{name}_decorator.rb
  5. Create a collection decorator in app/decorators/{plural(name)}_decorator.rb
  6. Create a realizer in app/realizers/{version}/{name}_realizer.rb
  7. For each action allowed create a schema: app/schemas/{version}/{plural(name)}/{action}_schema.rb
  8. Create a serializer in app/serializers/{version}/{name}_serializer.rb

Setup

  1. heroku addons:create heroku-redis:hobby-dev --app={application} --maxmemory_policy=noeviction --as=REDIS_SIDEKIQ
  2. heroku addons:create heroku-redis:hobby-dev --app={application} --maxmemory_policy=noeviction --as=REDIS_OBJECTS
  3. heroku addons:create heroku-redis:hobby-dev --app={application} --maxmemory_policy=volatile-lru --as=REDIS_CACHE
  4. heroku addons:create heroku-redis:hobby-dev --app={application} --maxmemory_policy=noeviction --as=REDIS_REDLOCK
  5. heroku addons:create heroku-redis:hobby-dev --app={application} --maxmemory_policy=noeviction --as=REDIS_ACTION_CABLE

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages