I have a question. Just like reactjs can serve st...
# compose
o
I have a question. Just like reactjs can serve static file/page. Can compose for web server static page?
🚫 1
a
yes and no. what are you trying to do?
o
I am trying to create a frontend for my backend api
a
I am trying to create a frontend for my backend api
im confused how this is related to service static pages. compose web is meant to be used for front ends
if you can be more specific by what you mean on static files/pages, i could help out more
o
A static website is a website that doesn't require a server to run. For example website that gets hosted on github page. Like a portfolio website.
c
This does not make any sense. GitHub is the server for your GitHub pages. A static website is a website that does not require JavaScript to render its content and no, you cannot have that with compose web. It need JavaScript do render the content of your website to the
<canvas>
element.
a
A static website is a website that doesn't require a server to run. For example website that gets hosted on github page. Like a portfolio website.
@Ohiorenua Aigboje if that's the case, yes 🙂 you can do that. compose web actual output is a js script. it's up to you to host it. I used to use my documentation examples (compose web js) on github pages. to get a bit more context of how that is, go make yourself a web app using the https://kmp.jetbrains.com/ wizard, and check the index.html file. you'll notice how it the composeApp script is hosted there.
o
The result package/script is usually large
a
indeed