Skip to content

A monet generator made using cycle gan. With the application you can transform regular images to monetish foto's.

Notifications You must be signed in to change notification settings

tobiashungwe/monet-generator

Repository files navigation

🌼 Monet-Generator Project 🌼

Welcome to the Monet-Generator Project! This repository contains the code and resources for deploying a FastAPI backend and a Vite-React frontend application that generates Monet-style images. This project demonstrates the use of various cloud and containerization technologies to achieve a scalable and secure deployment.

🌟 Project Overview

The Monet-Generator Project involves the following components:

  • FastAPI Backend: A machine learning model that generates Monet-style images.
  • Vite-React Frontend: A web application that allows users to upload images and view the generated results.
  • Azure Kubernetes Service (AKS): Hosts the FastAPI backend.
  • Azure Static Web Apps: Hosts the Vite-React frontend.
  • Cert-Manager with Let's Encrypt: Manages SSL certificates for secure HTTPS communication.

🔧 Technologies Used

  • Python
  • FastAPI
  • Docker
  • Kubernetes
  • Azure
  • Vite
  • React
  • Cert-Manager

📋 Table of Contents

🚀 Setup Instructions

Prerequisites

  • Docker
  • Kubernetes CLI (kubectl)
  • Azure CLI
  • Node.js and npm

Step 1: Clone the Repository

git clone https://github.com/your-username/monet-generator.git
cd monet-generator

Step 2: Set Up the Backend

  1. Build Docker Image
docker build -t monet-backend .
docker push your_dockerhub_username/monet-backend
  1. Deploy to Kubernetes
kubectl apply -f k8s/backend-deployment.yaml
kubectl apply -f k8s/backend-service.yaml
kubectl apply -f k8s/monet-ingress.yaml
  1. Configure Cert-Manager
kubectl apply -f k8s/cert-manager.yaml
kubectl apply -f k8s/letsencrypt-issuer.yaml

Step 3: Set Up the Frontend

  1. Deploy Azure Static Web App

    • Follow the Azure Portal wizard to create a new Static Web App linked to your GitHub repository.
    • Configure GitHub Actions to build and deploy your Vite-React app.
  2. Update DNS Settings

    • Point your domain to the Azure Static Web App.

🌐 How to Use

  1. Access the Frontend

    Navigate to https://monet-generator.hungwevision.com to access the web application.

  2. Upload an Image

    Use the upload functionality to submit an image for Monet-style transformation.

  3. View Results

    The transformed image will be displayed on the webpage.

🤝 Contributing

We welcome contributions! Please follow these steps to contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes.
  4. Commit your changes (git commit -m 'Add new feature').
  5. Push to the branch (git push origin feature-branch).
  6. Open a Pull Request.

📄 License

This project is licensed under the MIT License.


❤️ Support This Project

If you find this project helpful, please give it a ⭐ on GitHub and share it with others! You can also:

  • 👍 Like it on GitHub
  • 💬 Provide feedback
  • 🌟 Star this repository

Let's build something amazing together! 🚀

By following these steps and guidelines, you'll be able to successfully set up and use the Monet-Generator Project. If you encounter any issues, feel free to open an issue on GitHub or reach out for support.


📝 Additional Information

For more detailed information about the project, please refer to the assignment document and the project's source code.


About

A monet generator made using cycle gan. With the application you can transform regular images to monetish foto's.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published