CodeWhisperer Test Lab - TODO list in Rust and TypeScript
Trying CodeWhisperer LLM coding assistant to build a TODO list app in Rust and TypeScript.
Server
- CodeWhisperer (CW) is not very useful when working from a blank slate (it suggests Rocket code even when the comments say use Axum)
- CW likes to suggest modules even they they are not used
- CW does not work in the
Cargo.toml
file
You can run the server like this:
cargo run
Client
To give CW a skeleton to infer from, I created the client application with create-react-app
like this:
npx create-react-app client --template typescript
I also added the Ant Design component library, npm install antd --save
.
You can run the client in development mode like this:
npm start
The development environment is set up to proxy to the Rust backend, see https://create-react-app.dev/docs/proxying-api-requests-in-development
The corresponding line is the "proxy"
key in package.json
.
Evaluation
CodeWhisperer in its current version feels limited and less useful than e.g. GitHub Copilot or Cody AI.