Dependencies:
- .NET SDK 10.x: Run
dotnet --versionand ensure it starts with10. - Node.js & npm: Ensure you have
Node.js version 20.xor higher and npm installed- Run
node --versionandnpm --versionin your terminal to verify
- Run
Run backend server (.NET 10):
- Open the project folder in your IDE
- Open the Terminal in your IDE
- From project root, navigate to dir /backend and run:
cd backend
dotnet restore
dotnet run
- Check http://localhost:5000/ returns "Save the World!"
Run backend with auto-restart on file changes (.NET watch mode):
- In
/backend, run:
dotnet watch run
- The backend will restart automatically when C# files change.
Run frontend:
- Open a NEW Terminal window in the IDE
- From project root, navigate to dir /frontend and run
cd frontend
npm install
npm start
- Check you can see the UI at http://localhost:3001/
Run end-to-end tests (Playwright):
- Make sure the backend and frontend dependencies are installed (see above)
- From the project root, run:
npm install
npx playwright install --with-deps chromium
npm run test:e2e
- The
playwright installstep downloads the Chromium browser Playwright needs; it only has to be run once per machine (re-run it ifnpm run test:e2efails with an executable-not-found error) - This starts the backend and frontend automatically and runs the e2e smoke test against http://localhost:3001/
- Use
npm run test:e2e:uito run the tests with the Playwright UI
Legal Disclaimer:
This repository contains proprietary workshop code and materials. The contents are the intellectual property of Commit AI and are provided solely for the purposes of the associated workshop by paying customers.
You may not use, copy, distribute, or share any part of this code or its contents without explicit written consent from Commit AI.