Skip to content

jamowei/fritz2-ktor-todomvc

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

fritz2

Ktor TodoMVC

This project is an example for using fritz2 with in a ktor web-application. It will demonstrate how-to interact with a backend application in fritz2 and how-to setup this kind of project.

This project is a Kotlin multiplatform project which contains everything. In the commonMain section is the shared model and validation of the application. The jsMain section contains the complete code of the client-application written with fritz2. The backend part is in the jvmMain section where all the code for the server is.

This project uses the following libraries:

  • fritz2 - mainly in the frontend, except validation and model in both sides
  • kotlinx.serialization - used in frontend and backend for serializing the shared model
  • Ktor - running the server with
  • Exposed - making CRUD operations to the database
  • H2 Database - running as in-memory-db which stores the data

Features

  • running full-stack-example based on the TodoMVC
  • working validation provided by fritz2 extension on client- and server-side
  • complete gradle configuration
  • some tests

Run

To run this application you only need to run the following gradle task:

> ./gradlew run 

Then navigate in your browser to localhost:8080

Contribution

If you like this example and how fritz2 works it would be great when you give us a at our fritz2 github page.

When you find some bugs or improvements please let us know by reporting an issue here. Also, feel free to use this project as template for your own applications.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published