frontend-connect
Installation
SKILL.md
Frontend connect
This skill gives the person a Next.js app wired to their Drupal backend for sign-in. The backend is a site made by the backend-setup skill.
Before you start
- Run the machine-check skill first:
bash scripts/check-machine.shin that skill. Go on only when its JSON saysreadyis true. Otherwise, show the person what it reports and stop. - Node 22.13 or later and
mkcertmust be installed. The script checks both. - The backend must be running, and it must carry the Simple OAuth client
nextjswith redirect URIhttp://localhost:3000/api/auth/callback. A backend made by backend-setup at its default template ref has it. - Propose an app folder beside the backend folder, for example
<backend-folder>-app. It must not exist yet, or must be empty. Tell the person the path and wait for their agreement before you run the script.
Create the app
Run this skill's script with absolute paths:
bash <this-skill-folder>/scripts/setup-frontend.sh --backend <backend-project-folder> <app-folder>