mahmmedn19 / N-Gemini

N-Gemini is a Kotlin Compose Multiplatform project designed to target Android, Web, and Desktop platforms. Generate content based on prompts (Text and Images).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

N-Gemini

N-Gemini is a Kotlin Compose Multiplatform project designed to target Android, Web, and Desktop platforms.

NGemini

NGeminiApp.mp4

Project Structure

The /composeApp directory contains code shared across Compose Multiplatform applications, organized into the following subfolders:

  • commonMain: Code common to all platforms.
  • jvmMain, androidMain, jsMain

📱 Supported Platforms

This project supports the following platforms:

  • Android
  • iOS ( will be added in the future)
  • Desktop (Linux, macOS, Windows)
  • Web

Before Running

Before running the project, obtain an API key from Google AI to communicate with the Gemini API. Once obtained, assign the key to the NGEMINI_API_KEY constant in the local.properties file:

  1. Add a local.properties file to the project root.
  2. Set the path to the Android SDK in the local.properties file.
  3. Add NGEMINI_API_KEY=" " to store the obtained API key.

Learn more about:

Running the Application

Android

To run the application on an Android device/emulator:

  1. Open the project in Android Studio.
  2. Run the imported Android run configuration.

To build the application bundle:

./gradlew :composeApp:assembleDebug

Desktop

Run the desktop application:

./gradlew :composeApp:run

Browser

Run the browser application:

./gradlew :composeApp:jsBrowserDevelopmentRun

🤍 Found this Repository Useful?

Support it by starring and sharing it ⭐

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

N-Gemini is a Kotlin Compose Multiplatform project designed to target Android, Web, and Desktop platforms. Generate content based on prompts (Text and Images).

License:MIT License


Languages

Language:Kotlin 98.3%Language:JavaScript 1.0%Language:HTML 0.7%