MailFusion-Create-Edit-and-Elevate-Email-Templates

MailFusion - Create, Edit, and Elevate Email Templates

Welcome to MailFusion! This repository houses both the frontend and backend components of our application, designed to help you create, manage, and elevate beautiful email templates with ease.

Live Demo

Check out the live version of the app here.

Overview

MailFusion is a comprehensive email template generation platform. The backend is built with Flask and handles user authentication, template generation, and data management. The frontend, built with React, provides an intuitive user interface for interacting with the backend services.

Table of Contents

Tech Stack

Backend

Frontend

Code Explanation

Backend

Frontend

Installation

Backend

  1. Clone the repository:

    git clone https://github.com/yourusername/MailFusion-Create-Edit-and-Elevate-Email-Templates.git
    cd MailFusion-Create-Edit-and-Elevate-Email-Templates/backend
    
  2. Set up a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
    
  3. Install dependencies:

    pip install -r requirements.txt
    
  4. Set up environment variables:

    Create a .env file in the root directory with the following variables:

    FLASK_APP=app.py
    FLASK_ENV=development
    SECRET_KEY=your_secret_key
    JWT_SECRET_KEY=your_jwt_secret_key
    SQLALCHEMY_DATABASE_URI=sqlite:///db.sqlite3  # Or your preferred database
    GEMINI_API_KEY=your_gemini_api_key
    UNSPLASH_API_KEY=your_unsplash_api_key
    

Frontend

  1. Clone the repository:

    git clone https://github.com/yourusername/MailFusion-Create-Edit-and-Elevate-Email-Templates.git
    cd MailFusion-Create-Edit-and-Elevate-Email-Templates/frontend
    
  2. Install dependencies:

    Make sure you have Node.js installed. Then, run:

    npm install
    
  3. Run the development server:

    npm start
    

    This will start the app on http://localhost:3000.

Project Structure

Backend

Frontend

Available Scripts

Backend

Frontend

Available Routes

Environment Variables

Ensure the following environment variables are set:

Running the Application

Deployment