zuixjs / zuix

zuix.js is a JavaScript library for creating component-based websites and applications.
https://zuixjs.org
Apache License 2.0
69 stars 10 forks source link

Question on how to connect to REST endpiont #14

Closed devoldski closed 2 years ago

devoldski commented 3 years ago

Hi there,

I have read through the contributing guidelines and issues here and i thought that i would post a question regarding how to use zuixjs with a rest api endpoint.

I have looked through the various pwa applications that are linked from this project and looked throgh the various tutorials however I have not been able to understand how to get data from an endpoint, manipulating the result and insert it into a template.

This might be due to the fact that I have not done much javascript before, and this might even be so simple that it is self explanatory. however I still try to ask here and hope for a positive answer.

Can you direct me towards some simple one page examples on how this is done using zuixjs?

Btw: the zuixjs library looks like a really nice lib for making simple js,html, css PWAs. thank you for making this project available.

devoldski commented 3 years ago

fyi I have cloned the zuix-html-pwa and see that the rss are fetched and also changed into Json object. However my limited knowledge makes it hard for me to understand how to set this up in a good way in a single page and understanding how to use the page.html and page.js to make this happen.

I'm trying to fetch an article element with the following keys: id, title, content, updated

thx