Skip to content

Instantly share code, notes, and snippets.

@eternal44
Last active April 13, 2020 03:33
Show Gist options
  • Save eternal44/924a9be91d1c64fb89e0a4916f4602c5 to your computer and use it in GitHub Desktop.
Save eternal44/924a9be91d1c64fb89e0a4916f4602c5 to your computer and use it in GitHub Desktop.

Architecture

Server-side rendered monolith.

Summary

Backend:

Frontend:

Request Flow

  1. a request is handled by a rails controller and preprocessed.
  2. request is relayed to the database as a query.
  3. response with the data requested is passed to the frontend via the Rails view file using the react-rails library.
  4. React state is managed via React hooks or localstorage.
  5. Parent components pass props to child components. We are not using Redux currently.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment