# Create a task manager app with Spring Boot and Claude In this tutorial, you'll learn how to use [Claude](https://claude.com/product/overview) to create a Kotlin app to manage tasks. The tutorial uses Spring Boot to manage the backend infrastructure, while Claude plans and develops the application. If you prefer to create an app without the help of AI, you can follow our [Create a web app with Kotlin and Spring Boot](jvm-get-started-spring-boot.html) tutorial. Note: As with any AI-powered tool, Claude can make mistakes. Review Claude's changes carefully and only use it with code you trust. For more information on Claude's security policy, see [Claude Code Docs](https://code.claude.com/docs/en/security). ## Set up the environment Tip: This tutorial uses Claude through the JetBrains AI Assistant, but you can also work through the tutorial steps using Claude Code in the terminal. 1. Download and install the latest version of [IntelliJ IDEA](https://www.jetbrains.com/idea/download/). 2. Install the [JetBrains AI Assistant](https://plugins.jetbrains.com/plugin/22282-jetbrains-ai-assistant). 3. Activate Claude Agent in one of the following ways: * [Using a JetBrains AI subscription](https://www.jetbrains.com/help/ai-assistant/activate-agents.html#activate-claude-agent-with-jbai-subscription) * [Using an API key](https://www.jetbrains.com/help/ai-assistant/activate-agents.html#activate-claude-agent-with-api-key) * [Using Anthropic Console](https://www.jetbrains.com/help/ai-assistant/activate-agents.html#activate-agent-with-provider-specific-method) ## Create a project Tip: You can also create a Spring Boot project using [Spring's web-based project generator](https://start.spring.io/#!language=kotlin&type=gradle-project-kotlin). Create a new Spring Boot project in IntelliJ IDEA: 1. In IntelliJ IDEA, select File | New | Project. 2. In the panel on the left, select New Project | Spring Boot. 3. Specify the following fields and options in the New Project window: * Name: task-manager-demo * Language: Kotlin * Type: Gradle - Kotlin Tip: This option specifies the build system and the DSL. * Package name: org.jetbrains.kotlin.taskmanagerdemo * JDK: jbr-21 * Java: 17 Tip: If you don't have these Java and JDK versions installed, you can download them from the dropdown lists. ![Create Spring Boot project](images/create-spring-claude-project.png) 4. Make sure that you specified all the fields, then click Next. 5. Select the latest stable Spring Boot version in the Spring Boot field. 6. Select the Web | Spring Web dependency. ![Set up Spring Boot project](images/spring-claude-dependency.png) 7. Click Create to generate and set up the project. The IDE generates and opens the new project. It may take some time to download and import the project dependencies. ## Create a development plan In your project: 1. Open the ![AI Chat](images/toolWindowChat%4020x20.svg) AI Chat tool window. By default, the Chat mode is selected. Select Claude Agent. ![Select Claude Agent](images/select-claude-agent.png) 2. Click Mode: Default ![Operation mode](images/app-client.expui.general.chevronDownLarge.svg) and select Mode: Plan Mode. Claude Agent is now ready to plan without executing actions. ![Select Plan Mode](images/claude-plan-mode.png) Tip: For more information about the different operation modes, see [Select operation mode](https://www.jetbrains.com/help/ai-assistant/claude-agent.html#select-operation-mode). 3. Write a prompt asking Claude to create a task manager app. Share some details on what you think it should include. For example: ```TEXT I'd like to create a task manager application for managing tasks, such as a grocery list. It should have a basic UI and include categories, due dates, priorities, and status tracking. Use VCS while working. Work step by step and create commits at each stage so I can review the changes afterward. ``` Tip: For guidance on how to design your prompt, see [Claude Code best practices](https://code.claude.com/docs/en/best-practices). Claude explores the existing project structure and suggests a plan. 4. Review the plan carefully before proceeding. If you want to make some modifications, select No, keep planning and share your follow-up comments. 5. When you're ready to proceed, select the Yes ... option that fits how much control you want over Claude's changes. ![Ready to code](images/ready-to-code.png) Tip: For more information on the different options, see [Claude Code permission modes](https://code.claude.com/docs/en/best-practices). 6. Claude exits Plan Mode and begins working. Wait until the work is complete. ## Review the commits Before running the app, review the generated changes carefully: 1. Open the Git tool window to see the list of commits. 2. Select a commit and double-click each modified file to review the diff in IntelliJ IDEA's side-by-side viewer. ![Side-by-side viewer](images/side-by-side-viewer.png) ## Run the app Once you are happy with the changes, run the app: 1. Run the `bootRun` Gradle task or enter the following command in the terminal: ```BASH ./gradlew bootRun ``` 2. In a browser, open the localhost URL. The default is usually: ```TEXT http://localhost:8080 ``` You should now see the basic UI that Claude created. ![Run the app](images/run-spring-claude-app.png) Tip: Since Claude designs the UI, your UI may look different from the version in this tutorial. ## Test the app Now it's time for you to test the app. ### Test the UI manually Start by testing the UI functionality. Try some simple actions: 1. Create a task and test the form fields. 2. Edit a task to check that changes persist. 3. Change the status of a task. 4. Delete a task. 5. Change the category of a task. If any of these actions don't work, send a new prompt to Claude asking it to investigate and fix the problem. ### Run unit tests Claude also creates some tests automatically. Check that all the tests pass by running: ```BASH ./gradlew test ``` Alternatively, in the `src/test` directory, open a test and click the run icon ![run icon](images/app-client.expui.run.run.svg) in the gutter. A successful test shows ![run success icon](images/app-client.expui.gutter.runSuccess.svg). If any test doesn't work, send a new prompt to Claude asking it to investigate and fix the problem. ## Make refinements Now that the initial task is complete, you can make refinements. For example, let's improve the UI so users can edit tasks directly in the list. You can send a prompt like: ```TEXT As a next step, allow users to edit tasks inline. For example, let users click on a task title to edit it directly in the list, and update fields like priority, due date, or status without leaving the current view. This change should make the app feel faster and more intuitive to use. ``` Just as before, Claude explores the existing project structure and suggests a plan. After you accept the plan, wait for Claude to finish, review the changes, and then run the app again. ![Refine your Spring Boot app with Claude](images/make-refinements-claude.gif) Congratulations! You used Claude to plan, build, test, and refine a Kotlin Spring Boot application directly in IntelliJ IDEA. ## What's next? * Learn about [Kotlin AI skills](kotlin-ai-skills.html) * Check out our tutorial on using [Junie with Kotlin AI skills](https://kotlinlang.org/docs/multiplatform/multiplatform-cocoapods-spm-migration-ai.html)