File size: 2,346 Bytes
499abf3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# Installation Guide for Smart Resume Generator

This document provides detailed instructions for installing all dependencies required for the Smart Resume Generator application.

## Prerequisites

1. Python 3.8 or higher
2. pip (Python package manager)
3. Git (for cloning the repository)

## Basic Installation

1. Clone the repository:
   ```bash
   git clone https://github.com/yourusername/Smart-Resume-Generator.git
   cd Smart-Resume-Generator
   ```

2. Install Python dependencies:
   ```bash
   pip install -r requirements.txt
   ```

3. Create a `.env` file in the project root and add your API keys:
   ```
   GEMINI_API_KEY=your_gemini_api_key_here
   ```

## Installing wkhtmltopdf (Required for PDF Generation)

The application requires wkhtmltopdf for PDF generation. Follow the instructions below for your operating system:

### Linux (Ubuntu/Debian)

```bash
sudo apt-get update
sudo apt-get install wkhtmltopdf
```

### macOS

Using Homebrew:
```bash
brew install wkhtmltopdf
```

### Windows

1. Download the installer from [wkhtmltopdf downloads page](https://wkhtmltopdf.org/downloads.html)
2. Run the installer and follow the instructions
3. Add the installation directory to your system PATH

## Verifying wkhtmltopdf Installation

To verify that wkhtmltopdf is correctly installed, open a terminal/command prompt and run:

```bash
wkhtmltopdf --version
```

You should see version information if the installation was successful.

## Running the Application

1. Start the main App:
   ```bash
   python main.py
   ```


3. Open your browser and navigate to the URL provided by Streamlit (typically http://localhost:8501)

## Troubleshooting

### PDF Generation Issues

If you encounter errors with PDF generation:

1. Ensure wkhtmltopdf is properly installed
2. Verify that it's in your system PATH
3. Try running a simple wkhtmltopdf command to confirm it works:
   ```bash
   wkhtmltopdf https://google.com test.pdf
   ```

### API Connection Issues

If the frontend can't connect to the API:
1. Ensure the API server is running (`python main.py`)
2. Check that the API_BASE_URL in app.py matches your API server address
3. Default is http://localhost:8000

## For Developers

When developing locally, you can use:
```bash
uvicorn main:app --reload
```

This enables hot-reloading for the API server during development.