Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Creating rich universal React apps powered by R...

Akihito Koriyama
September 30, 2017

Creating rich universal React apps powered by RESTful PHP

phpnw17 unconf session

See more about BEAR.Sunday
http://bearsunday.github.io

Akihito Koriyama

September 30, 2017
Tweet

More Decks by Akihito Koriyama

Other Decks in Technology

Transcript

  1. Creating rich universal React apps powered by RESTful PHP Akihito

    Koriyama (@koriym)
 phpnw17 12.00 @ Manchester Conference Centre
  2. 8FC

  3. 200 GET /
 
 Get the link of APIs
 200

    OPTIONS /todo Get the communication options available 201 POST /todo?title=run Create new resource and get the URI of new resource in location header
 200 GET /todo?id=1
 
 Get the created resource
 = headless application REST App
  4. PHP First Rich UI App • PHP 
 - Routing


    - Application logic
 - Domain logic • JS (SSR + CSR)
 - View logic
 - UI logic
  5. Benefit • Performance + Caching • HTTP Status Code, Header

    • HTML Header (OGP / Twitter card) • SEO • Only when needed