https://github.com/heedrox/tdd-bai
TDD BAI: TDD Based on AI. Experiments to understand if a development flow can be used with GPT writing code from test specifications
https://github.com/heedrox/tdd-bai
Last synced: about 1 year ago
JSON representation
TDD BAI: TDD Based on AI. Experiments to understand if a development flow can be used with GPT writing code from test specifications
- Host: GitHub
- URL: https://github.com/heedrox/tdd-bai
- Owner: heedrox
- Created: 2023-03-21T21:44:25.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-26T13:11:14.000Z (about 3 years ago)
- Last Synced: 2025-03-29T18:22:11.254Z (about 1 year ago)
- Language: JavaScript
- Size: 87.9 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TDD BAI - TDD Based on AI
A proof of concept if we can use TDD BAI to develop something relatively complex.
## Instalation
- Download
- If you use "nvm", then type "nvm use". If not, use node v18
- `npm i`
- Create a `.env` file and add the line `OPENAI_API_KEY=xxxxxx` with your own Open AI API key. Check how to get one here: https://www.windowscentral.com/software-apps/how-to-get-an-openai-api-key
## Example execution
`npm run run-ai string-calculator`
This will read string-calculator.test.js, and dump a string-calculator.js
based on AI.
Where is the limit? We'll try to figure this out adding more complex examples
as we move on.