Building and Consuming a JSON API with Rails and React

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 #api #react https://rubyonrails.ba/single/building-and-consuming-a-json-api-with-rails-and-react

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles