Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ArtemkaKun/MVU.v

MVU pattern (The Elm Architecture) implemented in V programming language
https://github.com/ArtemkaKun/MVU.v

elm mvu patterns v vlang vlang-module

Last synced: 3 months ago
JSON representation

MVU pattern (The Elm Architecture) implemented in V programming language

Awesome Lists containing this project

README

        

This repo contains examples of MVU pattern (the Elm architecture),
implemented in V programming language.
The MVU is an alternative to MVC and MVVM patterns and can be used in UI, web, and game apps.

The logic of the pattern is pretty simple:
- you have a Model that defines your data
- you have an Update that reacts to Messages and returns updated Model
- you have a View that displays your current Model

You can read more [here](https://guide.elm-lang.org/architecture/).

## Examples
- [CLI counter](https://github.com/ArtemkaKun/MVU.v/blob/main/cli_counter/main.v)
- [V UI counter](https://github.com/ArtemkaKun/MVU.v/blob/main/ui_counter/main.v)

# Thanks

[Nu game engine](https://github.com/bryanedds/Nu) for the insipration.

# Donations

If you like this project, please consider donating to me or the V language project.
Your donations will help me to continue to develop this project and the V language.