ACME HQDemo work items and pages, made up for Emargen's demo. Not a real company.
Engineering / Engineering / Architecture decision records

ADR-001: A Laravel API and a React portal

By Rafael Duarte · created 14 Oct 2019, 13:00 UTC · last updated 12 Apr 2021, 09:00 UTC · version 3

adrarchitectureidentity-serviceportal

Status: accepted · Date: 14 October 2019 · Decided by: Rafael Duarte, Quinn Maas

Context

We are building sign-in and access for companies with many depots. The first customer wants people to sign in at depot terminals and administrators to manage access from head office. We are three engineers. Whatever we pick, we will run it ourselves for years, and customers will ask security questions about it from the first sale.

Options we looked at:

  1. A server-rendered web app that does everything (Laravel with Blade views).
  2. An API and a separate single-page admin app.
  3. One Node.js codebase for both.

Decision

An API in Laravel (PHP) for sign-in, people, depots, roles and access requests, and a separate admin portal in React that only talks to that API.

Consequences

Updates