Minimal Next.js (App Router) + shadcn/ui frontend for an existing objects REST API and Socket.IO events.
/list all objects/createcreate a new object/object/[id]object details
Create a .env.local file:
NEXT_PUBLIC_API_URL=http://localhost:3001
NEXT_PUBLIC_SOCKET_URL=http://localhost:3001If NEXT_PUBLIC_SOCKET_URL is not set, the app falls back to NEXT_PUBLIC_API_URL.
pnpm install
pnpm devOpen http://localhost:3000.
On the list page (/), Socket.IO events update UI automatically:
object_createdadds/updates a cardobject_deletedremoves the card