Skip to content

sakibint/avatars.ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Avatar Generator

Welcome to the AI Avatar Generator repository! This project is a web application that allows users to generate AI-powered avatars based on text prompts. The application is built using React and integrates with an AI image generation API to create unique avatars.

Table of Contents

Why This Project?

The AI Avatar Generator was created to provide users with a simple and intuitive way to create unique avatars using AI technology. Whether you need a professional headshot, a fun and personalized character, or just want to experiment with AI-generated images, this application makes it easy to generate high-quality avatars based on your own descriptions.

Features

  • Modern UI and Responsive Design: A clean and user-friendly interface that works well on various devices.
  • Input Validation and Error Handling: Ensures users provide valid input and handles errors gracefully.
  • Loading States: Provides visual feedback while the avatar is being generated.
  • Avatar Download Functionality: Users can download the generated avatars easily.
  • Integration with AI Image Generation API: Utilizes an AI service to generate high-quality avatars based on text prompts.

Getting Started

Prerequisites

Before you begin, ensure you have the following installed on your local machine:

Installation

  1. Clone the repository:

    git clone https://github.com/<your-username>/ai-avatar-generator.git
    cd ai-avatar-generator
  2. Install the dependencies:

    npm install
    # or
    yarn install

Running the Application

  1. Start the development server:

    npm start
    # or
    yarn start

    The application will be available at http://localhost:3000.

Usage

  1. Open the application in your browser.
  2. Enter a text prompt in the input field (e.g., "professional woman with short hair").
  3. Click the "Generate Avatar" button.
  4. Wait for the avatar to be generated.
  5. Download the generated avatar using the provided download button.

Deployment

You can deploy the application to various platforms like GitHub Pages, Vercel, or Netlify. Below are the basic steps for deploying to GitHub Pages:

  1. Create a GitHub Repository: Create a new repository on GitHub and push your web application's code to this repository.

  2. Add a gh-pages Branch: Create a new branch named gh-pages in your repository. GitHub Pages will look for this branch to serve your site.

  3. Deploy Using GitHub Actions: Add a workflow file .github/workflows/deploy.yml to automate the deployment.

    name: Deploy to GitHub Pages
    
    on:
      push:
        branches:
          - main
    
    jobs:
      deploy:
        runs-on: ubuntu-latest
        steps:
          - name: Checkout repository
            uses: actions/checkout@v2
          
          - name: Build and deploy
            uses: peaceiris/actions-gh-pages@v3
            with:
              github_token: ${{ secrets.GITHUB_TOKEN }}
              publish_dir: ./dist
  4. Push Changes: Commit and push your changes to the main branch. GitHub Actions will automatically deploy your site to GitHub Pages.

  5. Access Your Site: Your site will be available at https://<your-username>.github.io/<your-repository>.

Contributing

Contributions are welcome! If you have any ideas, suggestions, or bug fixes, please follow these steps:

  1. Fork the repository to your own GitHub account.

  2. Clone your fork of the repository to your local machine:

    git clone https://github.com/<your-username>/ai-avatar-generator.git
    cd ai-avatar-generator
  3. Create a new branch for your changes:

    git checkout -b my-feature-branch
  4. Make your changes and commit them with a descriptive message:

    git add .
    git commit -m "Add new feature or fix"
  5. Push your changes to your fork:

    git push origin my-feature-branch
  6. Open a pull request to the main repository, describing your changes and why they should be merged.

License

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

Contact

For any questions or suggestions, feel free to open an issue or contact the repository owner.


Thank you for using the AI Avatar Generator! We hope you enjoy creating unique avatars with the power of AI.


Feel free to customize the content as needed for your specific repository.

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •