이 프로젝트는 Spring AI 활용 실습을 위한 웹 백엔드입니다.
git clone https://github.com/revfactory/chat-api.git
cd chat-api-
IDE를 사용하는 경우 IDE 설정을 통해 환경 변수를 설정할 수 있습니다.
Edit Configurations... 선택
Modify Options 선택
Environment Variables 선택
Environment Variables 에 입력 (예:
OPENAI_API_KEY=your_openai_api_key;PLACE_API_KEY=your_place_api_key) -
리눅스/macOS 환경에서는 다음과 같이 설정할 수도 있습니다.
export OPENAI_API_KEY=your_openai_api_key
export PLACE_API_KEY=your_place_api_key- Windows 환경에서는
set명령어를 사용하세요.
set OPENAI_API_KEY=your_openai_api_key
set PLACE_API_KEY=your_place_api_key위 2번 환경 변수 설정을 IDE에서 한 경우 IDE에서 실행하면 됩니다.(⌃⌥R)
환경 변수 설정을 터미널에서 한 경우는 다음 명령어를 실행하세요.
./gradlew bootRun애플리케이션이 기본적으로 http://localhost:8080에서 실행됩니다.