I have a static website where all the content is rendered by elm.
Right now all the data is hard-coded into the elm source code. In the future I would like to add a small amount of database interaction to the project.
The web server I use support MySQL databases and PHP.
I was thinking it would be nice to be able to use the get function in the elm Http package to point to a php script on the server, which would query the database, and return json data that my elm program could interpret and render.
I would like to know if:
- This approach is possible
- There is a better (more convenient or correct) way to do this