Skip to content

Demo app for Rails 7 + React using esbuild to display data from NYT API

Notifications You must be signed in to change notification settings

dericko/rails-react-books

Repository files navigation

README

  • Using Rails 7 and React (via esbuild)

  • Structure

  • All React code lives in app/javascript
  • npm run build runs build.js which defines the main entry app/javascript/application.js (which then imports everything for the build)
  • see routes.rb for:
    • path to React (an empty app/view/home/index.erb with js set in the headers of layouts/application.html.erb)
    • path to Rails API (just the one app/controllers/nyt_books_controller that fetches and cleans the data)

About

Demo app for Rails 7 + React using esbuild to display data from NYT API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published