Solid newbie

I apologize, for this is really a noob question but i have been stumped for a bit, so i guess i'll ask: How do you separate backend and frontend functions in solid? All tutorials and resources I have seen are frontend only or use backend as a service for their apps. I would like to use node.js to build an app. Is this usually done with HTTP requests? Am I missing the point of solidjs? I like the ease of use and speed that comes with solid as someone who wrote their first app with plain javascript and express, but it seems the lines have been blurred now that I want to use a framework.
3 Replies
Grahf
Grahf2y ago
I don't really understand what you're trying to do. What do you mean by a backend function? Like if you're getting data from an API you can use Solid's createResource function. Then to display the data you can use something like a <For> component(frontend function?). If you don't want to use an external API you can make something like an express.js app and hit those endpoints in Solid the same way you'd use a third party API.
romanobro
romanobro2y ago
Ok, got it. In vanilla node js server I could just use express routing and have all of my backend operations housed in the same file. I guess what I would be doing in this case would be creating my own api in a way if I wanted to go down that path. Thanks
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View