-
Hi @iBicha , I would like to ask if you could share how you manage to generate a server within Roku and, more specifically, how it is possible to deploy a website on it. I have a great interest in learning how to do this. If possible, could you share any documentation, manual, or a basic example of how to do it? I don't fully understand the code's functionality. Thank you in advance for your help and guidance. Best regards, Leonardo |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I have some docs, but not too deep https://github.com/iBicha/playlet/tree/main/docs#playlet-web-app Here are the pieces that make it work: The second piece is the web server, Playlet has a web server that listens for tcp connections, parses and exchanges HttpMessages with the client. The server is a Task component that continuously listens for new connections and messages. The functionality of the web server is located here The server has milddewares (similar to most web servers out there) that allows me to specify specific handlers for certain paths/routes and methods (for example The static files are served using Here's one of the simplest routers in the server, it redirects from The other routers allow me to have a somewhat "restful" api that connects between the client and the server, mostly communicating with json data. Finally, you might notice that some router functions are annotated, for example
This is later interpreted by the web-server-plugin, so that this function is called when the method is a There are other things to talk about (different headers, caching with etags, the fact that static files are already gzipped at build time, etc) but this is as good as general intro gets. Feel free to ask questions if you have specifics. |
Beta Was this translation helpful? Give feedback.
-
Converting this issue to a discussion |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for the information, I will try it and I will let you know if I have any questions about it. |
Beta Was this translation helpful? Give feedback.
-
Hi! I was able to run the index.html file, thank you very much for your help. I still have some questions about how it works in detail, but I'll keep reviewing the code. If anything comes up, I'll let you know. |
Beta Was this translation helpful? Give feedback.
I have some docs, but not too deep https://github.com/iBicha/playlet/tree/main/docs#playlet-web-app
Here are the pieces that make it work:
First, the client is built from a svelte project from https://github.com/iBicha/playlet/tree/main/playlet-web but it can be any arbitrary html/js/css files. The build process spits the output files under
playlet-lib/src/www
.The second piece is the web server, Playlet has a web server that listens for tcp connections, parses and exchanges HttpMessages with the client. The server is a Task component that continuously listens for new connections and messages. The functionality of the web server is located here
The server has milddewares (similar to most …