Skip to content

tb/rails-json-api-react

Repository files navigation

by React Developers @ Selleo

Demo user: user1@example.com / Secret123

Setup app

bundle
rake db:setup
cd client && yarn

Start app

foreman start
open http://localhost:3000

Adding new JSON API resource

rails g model category name:string
rails generate jsonapi:resource category
rails g controller Category --skip-assets

routes.rb

jsonapi_resources :categories

Client

Add list, edit and form components in client/src/components/ based on one of existing.

License

MIT