Build Spring Boot app with Docker & OpenAI

Опубликовано: 28 Январь 2024
на канале: Joshua Matos
502
8

Build an application for storing and searching Chat GPT messages using Spring Boot, Docker, and the OpenAI API. In this tutorial, I'll show you how to get an API key, configure Docker, and set up PostgreSQL. Learn to create and manage message entities with JPA and explore the power of Spring's AI capabilities. Hope this gets you started building your own OpenAI / Spring Boot apps!

Requirements:
Java 17
Docker
Node.js
Gradle/Maven
Source code: https://joshuamatos.com/go.git-springai

💌 Sign up for my free weekly email newsletter - https://joshuamatos.com/sunday

🔗 LINKS MENTIONED:
🤝 How to Win Friends and Influence People, https://joshuamatos.com/agtr
🧹 Clean Code, https://joshuamatos.com/n1h2
🏗️ Code Complete, https://joshuamatos.com/fgi3
🔧 The Pragmatic Programmer, https://joshuamatos.com/8wof
🖥️ Structure and Interpretation of Computer Programs, https://joshuamatos.com/zldb

🍿 WATCH NEXT
   • What do Software Engineers really do?  

MY SOFTWARE ENGINEERING COURSES (COMING SOON)
🏆 In the Works! ⏳

MY FAVOURITE BOOKS, TOOLS & GEAR
🕒 Notion: https://joshuamatos.com/notion
✍️ My Top 5 Books - Books to Level Up as a Dev - https://joshuamatos.com/thebooks
📚 Kinsta - The Best Host for Websites I’ve used so far - https://joshuamatos.com/amazinghost
🎵 Epidemic Sound - Where I Get My Music - https://joshuamatos.com/epicsound

MY OTHER SOCIALS:
🎙 My podcast, where I talk about technology, interview software engineers and other inspiring people -https://joshuamatos.com/thepod
🌍 My blog - https://joshuamatos.com/blog
🐦 Twitter -   / joshuamatosdev  
📸 Instagram -   / joshuamatosdev  
📱 TikTok -   / joshuamatosdev  
🌍 My website - https://joshuamatos.com

00:00 - Introduction to the Project
00:10 - Obtaining the OpenAI API Key
00:22 - Setting Up Spring Boot and Docker
00:34 - Configuring Application Properties
01:06 - Creating Message Storage Classes
01:23 - Implementing Data Transfer Object (DTO)
01:33 - Setting Up JPA Repository
01:47 - Developing the Service Class
02:27 - Creating the Controller
03:05 - The Application

💻 As a self-taught software engineer, I began my tech journey creating websites and freelancing for gaming sites 🎮, a foundational experience that sparked my diverse exploration into technology. From there, I delved into various fields, including radios 📻, satellite systems 🛰️, and network management, managing and deploying servers, and managing people 👥 - constantly expanding my skill set. Now, as a professional software engineer currently in Austin's tech scene 🌆 - I've also become a YouTuber 🎥 and Entrepreneur 💼.

Btw, Some of the links in this description are affiliate links that I get a kickback from 😜