Building and Consuming a JSON API with Rails and React
12-Oct-2019 2058
To create a new project with rails, we need to use the rails new command with the project name at the end.We could also add some additional options. In this case, we will use --database=postgresql to use PostgreSQL as our database, --skip-turbolinks to avoid using turbolinks because we will handle routing in the frontend, and --webpack=react to make Rails generate the configuration for us to use React.js.
Building and Consuming a JSON API with Rails and React #ruby #rubydeveloper #rubyonrails #Building #Consuming #Rails #React #api #react https://rubyonrails.ba/link/building-and-consuming-a-json-api-with-rails-and-react