Demo user: user1@example.com / Secret123
bundle rake db:setup cd client && yarn
foreman start open http://localhost:3000
rails g model category name:string rails generate jsonapi:resource category rails g controller Category --skip-assets
jsonapi_resources :categories
Add list, edit and form components in client/src/components/
based on one of existing.
Categories
{ categories { id name } }
Categories with posts
{ categories(with_posts: true) { id name posts { id title category { id name } comments { id body } } } }
One category
{ category(id: 1) { id name } }
Posts
{ posts { id title category { id name } } }
One post
{ post(id: 1) { id title category { id name } comments { id body } } }