Original working file
run-locally.txt
Code and working example pages keep their original identifiers and sample text. The lesson and file guidance explain them in your language.
RUN THIS SEPARATE PRACTICE PROJECT
1. Keep public/, netlify/functions/ and package.json at this workshop root. Use a currently supported Node LTS release that meets package.json engines (>=22.13.0, the pinned CLI minimum). Check node --version. For current release support: https://nodejs.org/en/about/previous-releases
2. Run npm install in this workshop root. It installs the pinned local Netlify CLI and Stripe SDK and generates package-lock.json. Preserve that lockfile with your project. No global CLI installation is required.
3. Run npx netlify login, then npx netlify link. Select ONLY your disposable practice project. Linking identifies a project; it does not publish a deploy.
4. Create a private root .env using the names in server-env.example.txt. Never put it in public/. Confirm it is ignored by Git and use only your own test services/inboxes.
5. Run npm run dev. Open the local URL printed by the proxy, normally http://localhost:8888. A file:// page or a plain static HTTP server cannot run these functions.
6. Test the feature and negative cases in the lesson. The local proxy still calls the configured remote service; your account availability, quota and possible fees apply. Opening the page alone does not prove provider delivery. Stop with Ctrl+C.
CLI documentation: https://docs.netlify.com/api-and-cli-guides/cli-guides/local-development/