DEV Community

fvgm-spec
fvgm-spec

Posted on

Building a basic path finder app with help of AI in a few minutes

This is a submission for the GitHub Copilot Challenge : Fresh Starts

What I Built

If you are concerned about saving our natural environment, it would be useful for you to have an application always available where you can find the closer paths to recycling containers. I live in a little country in Latin America between Brazil and Argentina, you my guess which one it is, here the programs to protect our natural environment by recycling paper, glass, plastic and other renewable trash, it not exactly as developed like in countries such as Germany or any other in the north of Europe.

People who really cares about this issue, at least here in my country, try to do as many as little things to avoid environmental climate change, just storing the recycling trash in the places where it has to be done. Having an efficient way to do that would be beneficial for every body, so this is the idea that I had: asking AI to help me to build an app to achieve that efficiently.

Demo

Image description

Repo

To review what I did link to this repo

Copilot Experience

The first challenge that I faced was starting to use GitHub Copilot in VSCode, is just as easy as creating a directory where you are going to build your code + ctrl + I, and there you go...

Image description

Once I received the first answer from my AI prompt, I knew that I was going in the right "path", I wanted to ask for help and build a path-finder App that would help me to get the more efficient routes near to my house to take my recycling trash.

As I wanted to build an ASAP (as simple as possible) app in Python I just asked so to Copilot:

Image description

Once I got the suggestions from the AI I started to apply them in my code:

Image description

The result of my prompt was clear, a path-finder app, just as simple that I could start working on improving it using AI models provided by Github Copilot.

Image description

GitHub Models

I used the Claude 3.5 Sonnet model from Anthropic, as I have previously used this model with other AI editors, such as claude.ai. It is reliable for helping with code and also provides very complete code suggestions.

Conclusion

This demo test using GitHub Copilot Clearly shows how a simple project can be started from scratch, just by having a simple idea in mind. Then it can be improved using creativity and GitHub Copilot features.

Top comments (0)