A program that helps people practice Test-Driven Development through katas with AI coaching.
The TDD Coach guides users through implementing coding katas using Test-Driven Development. It follows the TDD cycle:
- PICK: Select a test case to implement
- RED: Write a failing test
- GREEN: Write the minimal code to make the test pass
- REFACTOR: Improve the code while keeping tests passing
The application uses an LLM (Claude model from Anthropic) to provide personalized coaching feedback at each step of the process.
-
Clone this repository
-
Install dependencies:
npm install -
Create a
.envfile based on.env.exampleand add your API key(s):By default, the application will use Anthropic's Claude.
- Start the server with hot reload:
npm start - Open your browser and navigate to http://localhost:3000
- Follow the guided TDD process to implement the FizzBuzz kata
Run the development server with hot reloading: make dev.
This will also log to file dev.log
Run tests: make test