Installation and Setup

This file provides instructions for setting up the development environment and running the Image-to-Code conversion application.

Prerequisites

Before installing the application, ensure to have the following software and accounts:

Repository Setup

Follow these steps to clone and set up the repository:

git <https://gitlab.dhiwise.com/internship_program_2025/group-project-1/image-to-html-team-2>
cd image-to-code-api

Backend Setup

The backend is built with FastAPI and requires setting up a Python environment with necessary dependencies.

Setting up the Python Environment

  1. Create and activate a virtual environment:
# For Windows
python -m venv venv
venv\\Scripts\\activate

# For macOS/Linux
python3 -m venv venv
source venv/bin/activate
  1. Install the required dependencies:
pip install -r requirements.txt

Environment Variables Configuration

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