An other ChatGPT UI built with webforj, Java 21 and SQlite.
To get started with this archetype, open the project in your IDE and run the following command to start the development server:
mvn jetty:runTo run the integration tests, use the following command:
mvn verifyYou need an OpenAI API key to use this application. Get one from OpenAI and set it before running the app. This application uses SQLite for storing chat history. Ensure that the Path to DATABASE_FILE environment variable is correctly set to a writable SQLite database file.
OPENAI_API_KEY=xxxxxxxxxxx
DATABASE_FILE=./database.db
docker build -t m4-chat-app:1.0 .
docker run -p 8080:8080 \
-e OPENAI_API_KEY="your-api-key" \
-e DATABASE_FILE="/data/m4-chat.db" \
m4-chat-app:1.0or pull existing docker image
docker pull dominicwrege/m4-chat:latest✅ AI-Powered Chat with OpenAI's ChatGPT API
✅ Simple and Lightweight design
✅ Database Persistence for chat history
✅ Dockerized for easy deployment
For more information, check out our comprehensive documentation here. You can read more about available components, app basics, and much more.