GithubHelp home page GithubHelp logo

idea_poll's Introduction

README

Run rubocop

  • bundle exec rubocop
  • bundle exec rubocop -A (# auto fix)

Steps

  • rails new -db=postgresql

  • rails g controller static_pages landing_page pricing privacy terms

  • rails g scaffold inbox name (also add validation in migration file, null)

  • add gem gaker -> bundle add faker

  • Seed data

  • robocop gem (then run bundle exec rubocop) -- .rubycop.yml

  • run rubo cop

    • bundle exec rubocop -a (and -A)
  • add gem devise

  • make devise it work with turbo (data:turbo: false in views)

  • Style flash messages

  • Basic styles

  • Connect Inbox to User

    • rails g migration add_user_id_to_inboxes user:references
    • rails db:reset
    • rails db:migrate
  • Scaffold message

    • rails g scaffold message body:text inbox:references user:references
  • Create messages (via inbox)

  • Cleanup

  • Counter cache

    • rails g migration add_messages_count_to_inboxes messages_count:integer
  • Message Controller (refactor: @inbox.messages rather than Message.find etc)

  • User can vote on messages

    • act_as_votable gem
    • rails g acts_as_votable:migration
    • rails db:migrate
  • User Authorization

    • only owner can edit/destroy their inbox
    • bundle add pundit
    • rails g pundit:install (will create policy folder)
  • Friendly ID

    • bundly add friendly_id
    • rails g migration AddSlugToInboxes slug:uniq
    • rails db:migrate
    • rails console
      • Inbox.find_each(&:save) # update existing data
      • Inbox.pluck(:slug) # for testing
  • Seed data

  • Improving forms (maxlength etc)

  • Gem : bundle add meta-tags

    • rails g meta_tags:install
    • add meta tags to pages (layout, controller)
  • Turbo features

    • Inbox -> Add Messages directly in inbox (inline)
    • Update the message count
    • Show messages when new message is added (without refresh)
    • Add destroy (turbo)
  • Fix order of messaging

  • Turbo : Voting

  • Turbo : Flash messages

  • Refactor turbo flash

  • Add Theme Color to Inboxes

  • Add 'status' to 'message' (incoming etc)

    • rails g migration add_status_to_message status:string (assign default in migration file)
  • Turbo: change 'status'

  • Toggle vote/unvote button

  • Change message color based on status

  • Refactor message_controller (set_message)

  • rubocop

  • Disappearing flash messages (stimulus controller)

  • ransack

    • bundle add ransack
    • change the inbox controller
    • add sort link to inbox index page
    • add search field
  • ransack: turbo

  • Devise Confirmable

  • Devise: Turbo (support)

  • Add a mailer (when a new message is posted)

Todos

  • Omniauth (github)
  • Turbo (autocomplete search on inbox)
  • User page (for inboxes)

idea_poll's People

Contributors

rajeshpillai avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.