Using the book, "Frontend-friendly Rails" as a reference, I'm planning to build a backend Rails API that is only loosely coupled with a JS framework frontend. To achieve this the app will:
- use client-generated uuids, when creating resources, as primary keys in an activerecord database,
- the Rails (4.2.6) API will provide JSON endpoints for a frontend framework to consume (probably React).
- install postgresql
bundle install
- start a local postgres server:
postgres
- start a local rails server:
rails s
- navigate to localhost: 3000
bundle exec rspec