Josh Justice

Rails APIs (Part 1) - Getting Past the CRUD

Josh Justice | Aug 27, 2018

Whether you create frontends in JavaScript, Swift, Java, or Kotlin, there’s a server-side framework for creating web service APIs in the same programming language you already use. It would seem like it’d be easiest for you to write your web service in the same language you use for your frontend.

But “seems” can be deceiving! The fastest and easiest way to create a web service API is Ruby on Rails—even if you don’t know Ruby.

In this screencast, we'll show you how to create a web service for tracking todos and we'll continue to build on this application throughout the rest of the series.

After this screencast, you'll be able to:

- Create a web service with an endpoint for CRUD using Ruby on Rails

Basic knowledge or experience building front-end applications is recommended.

For the More Curious...

Ruby Installation Guide
Postman App
Rails Guides
“CRUD” - create, read, update, and delete

Subscribers Only

Transcripts are for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.

Subscribers Only

Project files are only available for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.

Need Help?

If you get stuck, try starting a discussion with Big Nerd Ranch experts in the community tab.

Easy Backend APIs with Rails

This screencast is part of a skill pack called Easy Backend APIs with Rails.

Rails APIs (Part 1) - Getting Past the CRUD

8 minutes

In this screencast, we'll show you how to create a web service for tracking todos and we'll continue to build on this application throughout the rest of the series.

Rails APIs (Part 2) - Deploying

6 minutes

Whether you are building a prototype or a business critical product, Heroku makes it easy to deploy and scale web applications. If you’ve never run a production web application before this might sound intimidating, but don’t worry—we’re going to use Heroku, a platform that makes deploying apps incredibly easy. But first we have a little preparation to do.

Rails APIs (Part 3) - Authentication

7 minutes

In a previous screencast we set up a simple Rails web service for todos and deployed it to production. But right now there's no authorization on it, which means anyone can come along and modify our data. In this screencast, we’ll use the Doorkeeper gem makes it easy to add authentication to Rails APIs using the OAuth 2 standard.

Rails APIs (Part 4) - Custom Actions

9 minutes

In this screencast, we’ll follow up on our previous videos in this series and show you how to rewrite custom controller actions in Rails.

Rails APIs (Part 5) - Associations and Nested Routes

5 minutes

In this screencast, we’ll use the Doorkeeper gem makes it easy to add authentication to Rails APIs using the OAuth 2 standard.

Rails APIs (Part 6) - Authorization Rules

7 minutes

In a previous video we set up authentication for our Rails API, so that only logged in users can make changes. But sometimes more sophisticated rules are needed. In this screencast, we'll learn how to successfully add authorization to our API.

Rails APIs (Part 7) - Testing Web Services

8 minutes

In a previous screencasts, we built out a simple but full-featured web service. We have several tables of related data, validation, default values, and authorization. This is great, but it’s also starting to get complex enough that we might break something! Luckily, Rails’ testing support is second-to-none. In this screencast, we'll learn how to set up automated testing for our Rails web service.

Related Screencasts

Explore other screencasts related to this topic.

Extracting a React Component

8 minutes

Sometimes we don’t realize we should make a custom child component until it’s too late. In this screencast, we'll teach you how to extract a React component from an app.

Rails APIs (Part 6) - Authorization Rules

7 minutes

In a previous video we set up authentication for our Rails API, so that only logged in users can make changes. But sometimes more sophisticated rules are needed. In this screencast, we'll learn how to successfully add authorization to our API.

Rails APIs (Part 5) - Associations and Nested Routes

5 minutes

In this screencast, we’ll use the Doorkeeper gem makes it easy to add authentication to Rails APIs using the OAuth 2 standard.

Rails APIs (Part 2) - Deploying

6 minutes

Whether you are building a prototype or a business critical product, Heroku makes it easy to deploy and scale web applications. If you’ve never run a production web application before this might sound intimidating, but don’t worry—we’re going to use Heroku, a platform that makes deploying apps incredibly easy. But first we have a little preparation to do.

Rails APIs (Part 7) - Testing Web Services

8 minutes

In a previous screencasts, we built out a simple but full-featured web service. We have several tables of related data, validation, default values, and authorization. This is great, but it’s also starting to get complex enough that we might break something! Luckily, Rails’ testing support is second-to-none. In this screencast, we'll learn how to set up automated testing for our Rails web service.

Simplifying Vuex Using Cached Getters

6 minutes

In this screencast, we’re going to look at how to use the caching functionality of Vuex’s getters to simplify your data store code. We'll show you how to replace fragile imperative code with robust declarative code—and identify the tradeoffs of doing so.