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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -