An automated cover letter generator built with Spring Boot and Spring AI, utilizing the OpenAI API to generate content and returning it in a Microsoft Word file format. The application is completely Dockerized for easy deployment and includes Swagger for ease of use.
- OpenAI API key
- PostgreSQL database for storing resumes
- Clone the repository:
git clone https://github.com/abishek-ren/cover-letter-generator.git
- Build the Docker image:
docker build -t cover-letter-generator .
- Run the Docker container, replacing
<API_KEY>
,<DB_CONNECTION_STRING>
,<DB_USERNAME>
,<DB_PASSWORD>
with your OpenAI API key and PostgreSQL connection string, respectively:
docker run -e OPENAI_API_KEY=<API_KEY>
-e JDBC_DATABASE_URL=<DB_CONNECTION_STRING>
-e JDBC_DATABASE_USERNAME=<DB_USERNAME>
-e JDBC_DATABASE_PASSWORD=<DB_PASSWORD>
-p 8080:8080 cover-letter-generator
- Access the application at
http://localhost:8080
- Use Swagger to make API calls to the application at
http://localhost:8080/swagger-ui.html
POST /cover-letters/upload
: Upload a resumePOST /cover-letters/generate
: Generates a new cover letter based on the provided resume Id and job Description. Given as Request Parameter.
- Spring Boot
- Spring AI
- OpenAI API
- PostgreSQL
- Docker
- Swagger
This project is licensed under the MIT License
Abishek Rengarajan (https://github.com/abishek-ren)