I was reminded of Gemini CLI - thanks to Raffaele Preziosi !
(Check out the open source SF CLI plugins he has released: sf-debug-log, apex-log-parser and others at https://lnkd.in/gkjWe6f5 )
So I've experimented Gemini CLI to create a little app.
It wanted to use Bootstrap and Next.js - and I said no! 😂
It did create a decent app but when trying to fix bugs, it resulted in several "The model is overloaded. Please try again later." errors and I had to retry - that was a bit of pain.
🦾 But it did complete the job!
Total time spent was 35 min - only coding, not counting the preparation of text files used as data.
🔗 The app is linked below:
https://lnkd.in/gx5EgGHf
It reads a couple of text files containing questions and answers, then presents them as a flipcard quiz.
The interactions/prompts were:
- Create an app to train a person on the 100 civics questions for the naturalization test. In the current project folder you will find 2 text files: portugues.txt and english.txt Use them as the source of the questions. The web app should be mobile friendly and offer both Portuguese and English questions, and both original order versus random order.
- Use plain javascript instead of Next.js or React or Bootstrap. Everything else the same.
- The python server didn't work so I've loaded index.html in the browser directly. It failed when loading the txt file: TypeError: Failed to fetch
- It worked with npx http-server. However, the answers don't appear when clicking the card. Instead, the question appears in reverse text.
- It is working now. However, one problem: when clicking the card, it flips to the answer as expected, but if I click Next with the answer appearing, it will navigate to the next question and show the next answer for half a second before flipping to the question.
- The next answer now appears for a fraction of second after flipping and before the next question appears.
- When choosing Portuguese, the UI needs to present buttons and labels in Portuguese too.

