php - elm and database transactions -
i have static website content rendered elm.
right data hard-coded elm source code. in future add small amount of database interaction project.
the web server use support mysql databases , php.
i thinking nice able use get
function in elm http package point php script on server, query database, , return json data elm program interpret , render.
i know if:
- this approach possible
- there better (more convenient or correct) way
what describe way it. see chapter in elm-tutorial covers http://www.elm-tutorial.org/080_fetching_resources/cover.html
as alternative seed data in html , pass via ports.
Comments
Post a Comment