A simple web app that generates personalized daily affirmations based on the user's mood. Built with Google Gemini API using the @google/generative-ai library, this app features a modern, Apple-inspired glassmorphism design and smooth functionality.
Mood-Based Affirmations: Users can select a mood to receive a personalized affirmation.
Modern UI: Designed with a clean, techy aesthetic inspired by Apple’s design principles.
Powered by AI: Integrates Google’s Gemini API for text generation.
Frontend: HTML, CSS (Glassmorphism), JavaScript (ES Modules)
AI Integration: Google Gemini API via @google/generative-ai library
Prerequisites:
Node.js installed on your system
A valid API key for the Google Gemini APO
git clone https://github.com/1995th/daily-affirmations.git
cd daily-affirmations
npm install @google/generative-ai
Open main.js
Replace "API KEY HERE" with your Gemini API key.
Use a development server like Vite:
npm install vite
npx vite
Open your browser and navigate to http://localhost:3000.