Open OrangeTide opened 2 years ago
Do you need the boris server to also serve a frontend on http? You can integrate an http server but it's not totally necessary.
Or do you just want to dump the client into a folder/submodule here for a web server of your choice to serve so it's all contained in this project?
I assumed boris would have a fairly comprehensive HTTP server embedded into it.
Libwebsockets doesn't have mustache templates but theoretically could be added with mustache-c Facil.io is much bigger and more powerful than LWS and includes good mustache support. Kore.io is even bigger and fancier, but I don't think it has templates. Has great security/encryption features that the two above are lacking.
I think general architecture should be:
Given the above. I believe the answer to your question is that the JavaScript client should just be put in with the rest of the source. This seems like the easiest way to ensure that C and JS code are always in-sync on APIs.
You can either do a submodule if you want to potentially keep the client generic and port it to other MUDs. Or you can just put it into some reasonable director like src/client-js. And if you change your mind, copy it over to your other project(s).
(TODO: add a description of the intended work)