• Stars
    star
    130
  • Rank 277,575 (Top 6 %)
  • Language
    Ruby
  • Created almost 10 years ago
  • Updated almost 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Learn how to build an API on Michael Hartl's Rails tutorial (Rails 4.2 version)

Ruby on Rails Tutorial with API: sample application

circleci build

This repo is deprecated and not actively maintained. A new Rails tutorial has been released based on Rails 5. The equivelant EmberJS app can be found here.

This is the sample application for the Ruby on Rails Tutorial: Learn Web Development with Rails by Michael Hartl but with an API for the Ember version.

It's deployed here. Ember version is deployed here and there is a blog post about it

You can use this reference implementation to help track down errors if you end up having trouble with code in the tutorial. In particular, as a first debugging check I suggest getting the test suite to pass on your local machine:

$ cd /tmp
$ git clone https://github.com/mhartl/sample_app_3rd_edition.git
$ cd sample_app_3rd_edition
$ bundle install
$ bundle exec rake db:migrate
$ bundle exec rake test

The repository also has chapter-specific branches with the state of the code at the end of each chapter. You can view them as follows:

$ git branch --all
  .
  .
  .
  remotes/origin/account-activation-password-reset
  remotes/origin/filling-in-layout
  remotes/origin/following-users
  remotes/origin/log-in-log-out
  remotes/origin/master
  remotes/origin/modeling-users
  remotes/origin/sign-up
  remotes/origin/static-pages
  remotes/origin/updating-users
  remotes/origin/user-microposts

To check out one of these chapter-specific branches, just use git checkout followed by the name without remotes/origin:

$ git checkout log-in-log-out

This should help you track down any discrepancies between your code and the code in the tutorial.

More Repositories

1

rails5_api_tutorial

Learn how to build a modern API on Michael Hartl's Rails 5 tutorial
Ruby
456
star
2

Introspected-REST

An alternative to REST and GraphQL
379
star
3

SimpleAMS

Fast modern plain Ruby serializers using zero dependencies
Ruby
239
star
4

api_bomb

API load stressing and testing/measuring framework. Are you ready to defend your API ?
Ruby
50
star
5

rails_tutorial_ember

Michael Hartl's rails tutorial front-end, built in Ember :) (Ember version 1.8)
JavaScript
38
star
6

viska

SIP server built in Rust
Rust
36
star
7

rsip

SIP Rust library (generator & parser)
Rust
21
star
8

flexible-permissions

Specify allowed attributes and associations per model per role class. Perfect for modern APIs.
Ruby
19
star
9

hello.service

Hello World in Rust as a debian package and a systemd service
Rust
14
star
10

ember_on_rails5

Michael Hartl's rails tutorial front-end, built in Ember :)
JavaScript
9
star
11

SipSpeaker

Simple Answering machine written in Java & Ruby
Java
9
star
12

class_profiler

Simple performance profiler with some strong metaprogramming alcohol
Ruby
8
star
13

active_cash

Simple active record caching strategies
Ruby
6
star
14

my-twitter

A twitter (client) clone written in Ruby and Sinatra for custom domain hosting.
JavaScript
5
star
15

rsip-dns

SIP Rust library implementing RFC 3263, implemented on top of rsip
Rust
4
star
16

rsyslog

RFC 5424 customizable syslog parser
Rust
4
star
17

config.rc

My personal dotfiles, my personal taste.
Shell
2
star
18

DBalancer

A Distributed Load Balancer for NoSQL Data-stores
Java
2
star
19

ruby-serializers-benchmark

Benchmarking 3 most popular Ruby serializers along with SimpleAMS
Ruby
1
star
20

Distributed-Chat

A fully distributed chat
Java
1
star
21

agrimi

A threaded server written in Ruby using Celluloid actor based library.
Ruby
1
star
22

vasilakisfil.social

HTML
1
star
23

akinita

A real estate website with user/classifields management by admins
PHP
1
star
24

my_blog_base

Modified Octopress code
Ruby
1
star
25

undergraduate_thesis

My thesis which is based on WRSNs.
MATLAB
1
star
26

EventDB

An app that allows to post experiences and connect with other people with similar interestings
Ruby
1
star