Recently, I developed a layout designer using Canvas that is configured via a JSON file specifying background, fonts, colors, and more. Now, my next challenge is integrating it into a Rails application. However, I'm finding it difficult to find relevant information on how to achieve this seamlessly. The resources I've come across so far haven't been very helpful.
I'm seeking some guidance on the following:
1) How can I pass the JSON config data from my Model to the JS application if I have a product page set up?
2) What would be the best way to send a modified JSON file back from the JavaScript app in order to save it in the database?
3) Is setting up a JSON API necessary for this task? Should I start looking into that for a solution?
If you have any pointers or useful links, please share them with me.
Thank you for your help,
Leo