Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Like / Unlike feature #6

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

mcmegavolt
Copy link

Setup

  • I use docker compose to run PostgreSQL and Redis:

    docker compose up -d

  • Run Rails app

    rails db:create

    rails db:migrate

    rails db:migrate RAILS_ENV=test

    rails assets:precompile

    rails s

    Feel free to use an admin user with credentials: [email protected] / pa88w0rd

  • Run tests

    rspec

Some suggestions for improvement

  • Move like create/delete logic into the service object
  • Implement a statistic page for the post owner to see who liked it
  • Add pagination to the posts list
  • Make the posts list accessible for unregistered users
  • Add feature specs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant