Your First Web Application
In this first free chapter, I’m going to show you how to build a simple online To-Do list. This may just be a sample, but it is a complete, live application made entirely by you. Get ready to feel smart.
Starting Our Social App
If you’re reading this chapter then you’ve committed to learning a new skill that’s so empowering that it may just consume your entire life (it did in my case). You should have no problem finishing the course – it’s rich with new concepts and tools, but it’s succinct. We’re going to build a full-on social meme-sharing application with Facebook integration. Make it your own, and it’ll be extremely satisfying when it’s done.
Setting Up A Domain Name
This chapter is technically optional. You don’t have to go out and buy a domain name, but it’s nice to have a real website, and you can get plenty of great domain names for less than a dollar these days.
Our social app uses Facebook Authentication exclusively. We could build out a proper user registration system, but that would be a bit too tedious for this course. Facebook authentication is great because people don’t want another username and password to remember and they’re a lot less likely to actually use your site if they have to sign up.
In this chapter we set up image-posting functionality. This involves setting up Amazon S3 to store these images for us. At this point our application is basically done, it just needs a few small improvements.
Say a user makes a post and it’s unsuccessful because they’ve attached an invalid file format. We’d like to give them some feedback and explain why. We’re going to add flash boxes in this section which provide feedback to the user when they successfully or unsuccessfully perform an action.
Friendly ID For Cleaner URLs
We’d like our URLs to be meaningful, and not reveal information such as the total number of users and posts in our database. A rails gem called friendly_id solves this problem for us.