{"id":15382255,"url":"https://github.com/jamowei/fritz2-spring-todomvc","last_synced_at":"2025-10-17T21:17:55.582Z","repository":{"id":49869815,"uuid":"274974790","full_name":"jamowei/fritz2-spring-todomvc","owner":"jamowei","description":null,"archived":false,"fork":false,"pushed_at":"2021-06-09T12:46:14.000Z","size":102,"stargazers_count":5,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T00:05:29.604Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamowei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-25T17:21:17.000Z","updated_at":"2024-07-28T12:07:26.000Z","dependencies_parsed_at":"2022-09-17T16:21:08.323Z","dependency_job_id":null,"html_url":"https://github.com/jamowei/fritz2-spring-todomvc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamowei%2Ffritz2-spring-todomvc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamowei%2Ffritz2-spring-todomvc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamowei%2Ffritz2-spring-todomvc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamowei%2Ffritz2-spring-todomvc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamowei","download_url":"https://codeload.github.com/jamowei/fritz2-spring-todomvc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249137931,"owners_count":21218806,"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","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":[],"created_at":"2024-10-01T14:30:34.855Z","updated_at":"2025-10-17T21:17:55.520Z","avatar_url":"https://github.com/jamowei.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"![fritz2](https://www.fritz2.dev/images/fritz2_logo_grey.png)\n\n# Spring TodoMVC\n\nThis project is an example for using [fritz2](https://www.fritz2.dev/) with in a spring boot-web application.\nIt will demonstrate how-to interact with a backend application in fritz2 and how-to setup this kind of project.\n\nThis project consists of two sub-projects \"app\" and \"backend\". \nThe \"app\" project is a kotlin multi platform project which contains the client-site model and application. \nThe \"backend\" project is the spring boot 2 web-application and contains all the server-side code.\nFor using some shared parts of the \"app\" the \"backend\" has a dependence to the `commonMain` section of the \"app\" project.\n\nThis project uses the following libraries:\n* [fritz2](https://github.com/jwstegemann/fritz2) - mainly in \"app\", except validation and model in both sides\n* [kotlinx.serialization](https://github.com/Kotlin/kotlinx.serialization) - currently, only in \"app\" because there is no official support for spring web yet\n* [Spring Framework](https://start.spring.io/) - by using Spring Boot, Spring Web, Spring Data JPA in \"backend\"\n* [H2 Database](https://www.h2database.com/html/main.html) - running as in-memory-db which stores the data\n\n# Current status\nWhat is currently there:\n* running full-stack-example based on the [TodoMVC](http://todomvc.com/)\n* working validation provided by fritz2 extension on client- and server-side\n* complete gradle configuration\n* some tests\n\n# Run\nTo run this application you only need to run the following gradle task:\n```\n\u003e gradlew bootRun\n``` \nThen navigate in your browser to [localhost:8080](http://localhost:8080/)\n\n# Build\nYou can build a runnable fatJar by running the `bootJar` gradle task. \nIf you instead want to deploy this application to a Java web server you\ncan run the gradle `bootWar` task to get a war file.\n\nBoth files are then located at the `./backend/build/libs` folder.\n\n# Contribution\nIf you like this example and how fritz2 works it would be great \nwhen you give us a \u0026#11088; at our [fritz2 github page](https://github.com/jwstegemann/fritz2).\n\nWhen you find some bugs or improvements please let us know by reporting an issue \n[here](https://github.com/jamowei/fritz2-spring-todomvc/issues).\nAlso, feel free to use this project as template for your own applications.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamowei%2Ffritz2-spring-todomvc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamowei%2Ffritz2-spring-todomvc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamowei%2Ffritz2-spring-todomvc/lists"}