Fork me on GitHub

Project Notes

#478 GoodGifts

Using Copilot CLI to build a simple app to find gift suggestions based on my 5-star reviews and their Goodreads wishlist.

Notes

I did it again: gifted a book that someone already had.

Crazy thing is we both use Goodreads and I even used it to pick the book from my recent reads, but failed to check if they had already read it.

Goodreads itself has a friend bookshelf comparison feature, but it doesn’t (currently) make it easy to pluck out recommendations.

So, time to build a little app for that?

Building with Copilot CLI

I was keen to use this as a case study with the new Github Copilot CLI. Up to now, my Github Copilot use largely been restricted to simple changes within vscode.

So I went about building the app…and it did a pretty good job!

I used about 10 prompts in total, and my only manual interventions were around the edges:

  • tidy and expand the README
  • manually fix some text content
  • replace the docker control shell script with one based on other work

I did need to read and review the code to identify areas where the AI hadn’t done quite the right thing, and one bug had me investigating at quite a technical level to figure out how to prompt for a valid fix.

I am using the free Copilot plan, so this cost me nothing to build except perhaps an hour of two of my time.

How can this remain free and still so functional?? But while it lasts, this seems an excellent Claude-lite experience at no cost!

The App

See the source at https://github.com/tardate/goodgifts, the README has all the information about the app and how to run it. Or just run the Docker image.

Ideally, I would have liked this to be a single-page web app, but CORS restrictions prevent that from being a possibility.

goodgifts

Credits and References

About LCK#478
nodejavascriptHTMLAI

This page is a web-friendly rendering of my project notes shared in the LittleCodingKata GitHub repository.

Project Source on GitHub Return to the LittleCodingKata Catalog
About LittleCodingKata

LittleCodingKata is my collection of programming exercises, research and code toys broadly spanning things that relate to programming and software development (languages, frameworks and tools).

These range from the trivial to the complex and serious. Many are inspired by existing work and I'll note credits and references where applicable. The focus is quite scattered, as I variously work on things new and important in the moment, or go back to revisit things from the past.

This is primarily a personal collection for my own edification and learning, but anyone who stumbles by is welcome to borrow, steal or reference the work here. And if you spot errors or issues I'd really appreciate some feedback - create an issue, send me an email or even send a pull-request.

Follow the Blog follow projects and notes as they are published in your favourite feed reader