Build Facebook! You'll build a large portion of the core Facebook user functionality in this project. We won't be worrying about the Javascript-heavy front end stuff but you won't need it to get a nice user experience.
You should write at least a basic set of integration tests which let you know if each page is loading properly and unit tests to make sure your associations have been properly set up (e.g. testing that User.first.posts
works properly). Run them continuously in the background with Guard (See the Ruby on Rails Tutorial Chapter 3.7.3).
This project will give you a chance to take a relatively high level set of requirements and turn it into a functioning website. You'll need to read through the documentation on GitHub for some of the gems you'll be using.
Keep the following requirements in mind. We'll cover specific steps to get started below this list:
- Make posts also allow images (either just via a URL or, more complicated, by uploading one).
- Use the Active Storage to allow users to upload a photo to their profile.
- Make your post able to be either a text OR a photo by using a polymorphic association (so users can still like or comment on it while being none-the-wiser).