Inspiration
I love BuzzFeed personality quizzes and decided to build a project inspired by them. What better way to do that than figuring out what type of cat you are?
What it does
The user answers questions about how they would act if they were a cat, and then Google Gemini matches their quiz answers to one of six personality types: -Dismissive Diva -Trouble Maker -Snacker -Cuddle Monster -Window Watcher -Backyard Wanderer
How I built it
I created a Node.js server, created an HTML page styled with TailwindCSS, and connected everything together using JavaScript and the Google Gemini API. The website is hosted on Heroku, and I simply used a GitHub repository to deploy from.
Challenges we ran into
I am still new to creating Node.js servers and using middleware. I had a lot of issues trying to get my server to show the Tailwind styles, so the routes are not the most well-thought-out. In addition, I am just one person, so due to the time constraints I couldn't focus on just one part of the project.
Accomplishments that we're proud of
In addition to this being my first-ever solo hack, I've never used a LLM API! It was much simpler than I initially thought.
What we learned
I learned how to use dotenv to obscure API keys after accidentally pushing one to GitHub. Oops! I also learned about the gemini API and the different models associated with it.
What's next for Cat Personality Test
Besides taking the time to add more styling to enhance the UI and visual aesthetic of the website, this project let me learn a lot about web development!
Log in or sign up for Devpost to join the conversation.