Lock in $30 Savings on PRO—Offer Ends Soon! ⏳

PHPCamp Online #1 - Building Modern Monolithic...

Bheru Lal Gameti
July 13, 2024
18

PHPCamp Online #1 - Building Modern Monolithic Applications with Inertia.js, Laravel, and React

Session about how to make modern monolithic application using Inertia.js, Laravel, and React

Bheru Lal Gameti

July 13, 2024
Tweet

Transcript

  1. Treditional setup SPA setup Pros Pros Full Page Reloads Limited

    interactivity No full page reload Feel like native app Highly interactive ....more Need to take care of session, auth, state Routing management application + API Too many api calls Security
  2. Initial Request Request with inertia header HTML, Page assests... Update

    page data as json and page components How Inertia works No need of API endpoint! Full Page load X-Inertia: true
  3. What Problem is Inertia.js Solving Complexity of SPAs - Single-page

    applications require managing client-side routing, state management, and API integrations, making the development process cumbersome. Code Duplication - Writing separate codebases for frontend and backend logic can lead to duplication and inconsistencies. Slow Development Cycle: Constantly switching between frontend and backend environments can slow down development. Building APIs — With Inertia.js you don’t need to build a REST or GraphQL API.
  4. Why should you use Inertia.js? GraphQL benefits without using GraphQL

    Limited AJAX calls Security Framework agnostic
  5. Want more 📚 Inertia js - https://inertiajs.com Demo CRM -

    https://github.com/inertiajs/pingcrm Learn JavaScript - https://javascript.info