{"id":17401494,"url":"https://github.com/samie/vaadin-openai-chat","last_synced_at":"2025-07-25T06:07:40.629Z","repository":{"id":183663270,"uuid":"626450245","full_name":"samie/vaadin-openai-chat","owner":"samie","description":"OpenAI GPT 3.5 Example Chat app using Vaadin","archived":false,"fork":false,"pushed_at":"2023-07-25T09:26:19.000Z","size":90,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T05:41:29.599Z","etag":null,"topics":["chatbot","chatgpt","openai","spring-boot","vaadin"],"latest_commit_sha":null,"homepage":"https://dev.to/samiekblad/happy-path-building-a-chatbot-in-vaadin-with-openai-4b8a","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-04-11T13:48:10.000Z","updated_at":"2025-01-18T20:30:59.000Z","dependencies_parsed_at":"2023-07-25T11:01:33.450Z","dependency_job_id":null,"html_url":"https://github.com/samie/vaadin-openai-chat","commit_stats":null,"previous_names":["samie/vaadin-openai-chat"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samie/vaadin-openai-chat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samie%2Fvaadin-openai-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samie%2Fvaadin-openai-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samie%2Fvaadin-openai-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samie%2Fvaadin-openai-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samie","download_url":"https://codeload.github.com/samie/vaadin-openai-chat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samie%2Fvaadin-openai-chat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266963308,"owners_count":24013025,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatbot","chatgpt","openai","spring-boot","vaadin"],"created_at":"2024-10-16T16:24:15.245Z","updated_at":"2025-07-25T06:07:40.577Z","avatar_url":"https://github.com/samie.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenAI Chat Vaadin App\n\nThis is a small sample how to use OpenAI chat completion API in Vaadin and Spring Boot to\ncreate a own version of ChatGPT app using the Vaadin components like [MessageList](https://vaadin.com/docs/latest/components/message-list) \nand [MessageInput](https://vaadin.com/docs/latest/components/message-input). \n\nRead more about how the application was built in this blog post: [Building a Chatbot in Vaadin with OpenAI](https://dev.to/samiekblad/happy-path-building-a-chatbot-in-vaadin-with-openai-4b8a)\n\n[Vaadin](https://vaadin.com/flow) is a web application development framework that allows developers to \ncreate rich, interactive web interfaces with Java. It provides pre-built \nUI components, simplified data binding, and server-side processing for a \nseamless development experience.\n\n\u003cimg width=\"494\" alt=\"open-ai-vaadin-chat\" src=\"https://user-images.githubusercontent.com/991105/231206982-35d9053e-9bed-4c16-b4a1-e462e79a9288.png\"\u003e\n\n## Running the application\n\nTo run this application locally you need to get [OpenAI API key](https://platform.openai.com/account/api-keys) and\nupdate the `open.apikey` in you `src/main/resources/application.properties`.\n\nThe project is a standard Maven project. To run it from the command line,\ntype `OPENAI_APIKEY=your_key_here mvnw` (Windows), or `OPENAI_APIKEY=your_key_here ./mvnw` (Mac \u0026 Linux), then open\nhttp://localhost:8080 in your browser.\n\nYou can also import the project to your IDE of choice as you would with any\nMaven project. Read more on [how to import Vaadin projects to different IDEs](https://vaadin.com/docs/latest/guide/step-by-step/importing) (Eclipse, IntelliJ IDEA, NetBeans, and VS Code).\n\n## Deploying to Production\n\nTo create a production build, call `mvnw clean package -Pproduction` (Windows),\nor `./mvnw clean package -Pproduction` (Mac \u0026 Linux).\nThis will build a JAR file with all the dependencies and front-end resources,\nready to be deployed. The file can be found in the `target` folder after the build completes.\n\nOnce the JAR file is built, you can run it using\n`java -jar target/vaadin-openai-chat-1.0-SNAPSHOT.jar`\n\n## Project structure\n\n- `MainLayout.java` in `src/main/java` contains the navigation setup (i.e., the\n  side/top bar and the main menu). This setup uses\n  [App Layout](https://vaadin.com/docs/components/app-layout).\n- `views` package in `src/main/java` contains the server-side Java views of your application.\n- `views` folder in `frontend/` contains the client-side JavaScript views of your application.\n- `themes` folder in `frontend/` contains the custom CSS styles.\n\n## Useful links\n\n- Read the documentation at [vaadin.com/docs](https://vaadin.com/docs).\n- Follow the tutorial at [vaadin.com/docs/latest/tutorial/overview](https://vaadin.com/docs/latest/tutorial/overview).\n- Create new projects at [start.vaadin.com](https://start.vaadin.com/).\n- Search UI components and their usage examples at [vaadin.com/docs/latest/components](https://vaadin.com/docs/latest/components).\n- View use case applications that demonstrate Vaadin capabilities at [vaadin.com/examples-and-demos](https://vaadin.com/examples-and-demos).\n- Build any UI without custom CSS by discovering Vaadin's set of [CSS utility classes](https://vaadin.com/docs/styling/lumo/utility-classes). \n- Find a collection of solutions to common use cases at [cookbook.vaadin.com](https://cookbook.vaadin.com/).\n- Find add-ons at [vaadin.com/directory](https://vaadin.com/directory).\n- Ask questions on [Stack Overflow](https://stackoverflow.com/questions/tagged/vaadin) or join our [Discord channel](https://discord.gg/MYFq5RTbBn).\n- Report issues, create pull requests in [GitHub](https://github.com/vaadin).\n\n\n## Deploying using Docker\n\nTo build the Dockerized version of the project, run\n\n```\nmvn clean package -Pproduction\ndocker build . -t vaadin-openai-chat:latest\n```\n\nOnce the Docker image is correctly built, you can test it locally using\n\n```\ndocker run -p 8080:8080 vaadin-openai-chat:latest\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamie%2Fvaadin-openai-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamie%2Fvaadin-openai-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamie%2Fvaadin-openai-chat/lists"}