Skip to content

Instantly share code, notes, and snippets.

@forksofpower
Last active May 5, 2020 03:59
Show Gist options
  • Save forksofpower/e3e5ce8697cd2869249ec1ddc9b1a64c to your computer and use it in GitHub Desktop.
Save forksofpower/e3e5ce8697cd2869249ec1ddc9b1a64c to your computer and use it in GitHub Desktop.
Yet Another Place - Creating an r/place replica from scratch with Rails and ActionCable

User Stories

A user should be able to...

  • create an account and login using their google account
  • change a pixel's color once during a time period
  • view a full screen map of the pixels
  • pan and zoom around the map of pixels
  • watch pixels change on the map

Models

User >-- Paint --< Pixel

Steps:

# Install Rails 6
$ gem install rails

# Generate a new Rails project.
# We are choosing to include only the extensions that we need in order to minimize boilerplate clutter.
$ rails new pixel-place -d postgresql --skip-action-mailbox --skip-action-text
          --skip-spring -T --skip-turbolinks
          
# Generate a controller for our root index
$ rails g controller place index
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment