Skip to content

Instantly share code, notes, and snippets.

@mrgenixus
Created October 18, 2021 16:22
Show Gist options
  • Save mrgenixus/493847308a534397e3d2c3b5296f67b6 to your computer and use it in GitHub Desktop.
Save mrgenixus/493847308a534397e3d2c3b5296f67b6 to your computer and use it in GitHub Desktop.
How to rails new

Approaches

  • Monorepo - 2 codebases: Rails (API) + Webpacker, React Runtime, no React on Rails

    • Complex deployment, Simplified test-writing, complex test-running
    • Full separation of behaviors
    • Mirrors PTE
    • Some tight-coupling allowed in deployment
    • could be easily converted to Capacitor app
    • could be built for native mobile api access
  • Multirepo (not allowed in this case) - Above +

    • No Tight coupling supported
    • All API-based
    • No dealing with complex intra-repo issues
  • React on Rails (we're going to do this)

    • One thing that can be tightly coupled, unified/integrated testing, straight-forward deployments
    • Tricky (timings) test writing, easy test running
    • Normal process
  • React with webpacker (we could do this)

    • No tight-coupling
    • 2 test suites
    • Innovative process
  • Vuejs on Rails

    • Tricky Testing
    • Tightly Coupled (for better or worse)
    • Mostly unknown at Radial
    • Potentially lighter-weight JS code
  • Rails no FEF, Erb views only

    • Easy testing (running/writing)
    • No Dynamic (customer-expected) behaviors
    • JQuery vs Advances FE
    • Eventual transition, anyway...

Things we'll be doing:

  • Google Analytics
  • Rollbar?
  • Test suite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment