This application helps you generate personalized cover letters based on your personal data and job advertisements using OpenAI's GPT model.
-
Clone this repository to your local machine.
-
Install the dependencies by running
npm install
in the project directory. -
Create a
.env
file in the root of the project directory. -
Add your OpenAI API key to the
.env
file:VITE_OPENAI_API_KEY=your_actual_api_key_here
Replace
your_actual_api_key_here
with your real OpenAI API key. -
Start the development server by running
npm run dev
.
- Fill in your personal data in the form provided.
- Paste the job advertisement text into the designated area.
- Click on "Generate Cover Letter" to create a personalized cover letter.
- Keep your API key confidential and never share it publicly.
- This application is for demonstration purposes. In a production environment, API calls should be made from a secure backend to protect your API key.
If you encounter an "Invalid API key" error:
- Double-check that you've created the
.env
file in the project root. - Ensure that the API key in the
.env
file is correct and properly formatted. - Restart the development server after making changes to the
.env
file.
For any other issues, please check the console for error messages and refer to the OpenAI API documentation.