Case study
Localport — a local WordPress development workspace
Localport is an independently developed personal project that connects hosted WordPress environments to local Docker workspaces. I designed and built the dashboard, orchestration layer, and local workflow, with a focus on clear progress, recoverable operations, and honest change previews.
At a glance
- Multi-provider site discovery and cached libraries
- Background pulls with persisted job progress
- Trusted local HTTPS and per-site routing
- Repository mappings shared by WordPress and WP-CLI
- Read-only ACF comparison and content push previews
The problem
Moving a hosted WordPress environment onto a development machine involves several disconnected tasks: discover the right environment, authenticate, copy files and data, provision a runtime, rewrite local URLs, configure HTTPS, and connect editable code. When one step fails, it can be difficult to tell what is still usable.
I wanted a workspace that made the whole process understandable. The challenge was as much about state and feedback as containers: distinguish a provider’s site list from a running local copy, show the stage of a long operation, and explain what a comparison can actually prove.
Constraints
The real application needs local Docker access and registered hosting credentials. Provider workflows and backup freshness differ. The desktop shell is a preview; current domain and certificate setup scripts require Windows. Comparison previews must communicate their scope without implying that changes are safe to deploy.
The solution
One workspace, several providers
I built a React dashboard over a Node.js and Express backend, with Docker Compose providing local services. Provider libraries bring WP Engine, Pressable, and Pantheon environments into the workspace. Cached listing metadata keeps navigation responsive, while pulls resolve their source details through a live provider connection.
Make the work visible
Pulls run as background jobs with persisted progress. The UI can follow the job without keeping the original request open. Interrupted jobs are marked as failed after a backend restart. A fresh pull creates a separate copy, and the local route changes after success, preserving access to the previous successful copy when a later attempt fails.
Make local development feel connected
Caddy routes local hostnames over HTTPS using locally trusted certificates. Code mappings bind selected repository folders into both WordPress and WP-CLI, so the runtime uses the code being edited. An Electron preview wraps the same backend and dashboard rather than introducing a separate application state.
Keep review separate from application
The read-only ACF comparison matches definitions by stable keys across original, local, and incoming database exports. Its report separates incoming changes, local changes, matching changes, and conflicts. SQL is parsed as data, and the comparison does not apply changes. A separate push preview explores content differences against an origin baseline; it is also an inspection milestone rather than a production push feature.
Demonstrate the interaction safely
The portfolio walkthrough is a separate browser implementation using fictional sites and fixture data. Visitors can filter environments, follow a simulated pull, recover from a simulated failure, and inspect a sample ACF report. It demonstrates interaction design without access to Docker, private keys, real accounts, or client data.
Results
- Implemented a connected workflow from provider discovery to a usable local copy.
- Kept the last successful copy available when a newer pull fails.
- Made selected repository code available inside the local runtime.
- Built review interfaces that distinguish changes from conflicts without applying them.
- Created a browser walkthrough using fictional data. No measured time-savings or adoption claim is made.
What comes next
Validate a reviewable change plan in an isolated copy before enabling application. Add fresh conflict checks, dependency validation, backups, and rollback. Continue desktop packaging and cross-platform setup. The portfolio walkthrough simulates the workflow; it does not provision containers.