Skip to content

A simple web app that generates personalized daily affirmations based on the user's mood. Built with Google's Gemini API integration using @google/generative-ai SDK.

Notifications You must be signed in to change notification settings

1995th/daily-affirmations-geminiAI

Repository files navigation

Daily Affirmations Generator

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.

Features

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.

Tech Stack

Frontend: HTML, CSS (Glassmorphism), JavaScript (ES Modules)
AI Integration: Google Gemini API via @google/generative-ai library

Demo

web-app-gemini

Installation

Prerequisites:
Node.js installed on your system
A valid API key for the Google Gemini APO

Clone the repository:

git clone https://github.com/1995th/daily-affirmations.git
cd daily-affirmations

Install dependencies:

npm install @google/generative-ai

Add your API key:

Open main.js
Replace "API KEY HERE" with your Gemini API key.

Run the app:

Use a development server like Vite:
npm install vite
npx vite

Open your browser and navigate to http://localhost:3000.

About

A simple web app that generates personalized daily affirmations based on the user's mood. Built with Google's Gemini API integration using @google/generative-ai SDK.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published