wingerlang
wingerlang
DDeno
Created by wingerlang on 10/5/2023 in #help
Deno Deploy - is it possible to have 2 servers running?
Thanks for the reply! I will for sure deep dive on the code snippets tomorrow 🙂
25 replies
DDeno
Created by wingerlang on 10/5/2023 in #help
Deno Deploy - is it possible to have 2 servers running?
Im not sure how to "pass the req object" to the Oak handler. Every time I look at code it seems a bit different. I actually still dont get if I can/should have two servers to separate frontend/backend or if you mean that I should just move all backend-code into the frontend somehow. Im trying hard to understand but just dont get it yet, sorry for that.
25 replies
DDeno
Created by wingerlang on 10/5/2023 in #help
Deno Deploy - is it possible to have 2 servers running?
Thanks for the reply. I think the documentation is written in a way that it presumes some knowledge I do not have. I cannot really connect the dots how I glue my frontend with the backend using oak/deno. Should I somehow move the "await start(manifest, config);" Im using to start the Fresh app, in some handler-method along side the await app.listen({ port: 8080 }); Im already using for the backend?
25 replies
DDeno
Created by wingerlang on 10/5/2023 in #help
Deno Deploy - is it possible to have 2 servers running?
Sorry for not understanding this concept that well. Just nu sure how to "spin up" a fresh-instance or oak. I'm reading as much as I can to try figure it out, but so far no success
25 replies
DDeno
Created by wingerlang on 10/5/2023 in #help
Deno Deploy - is it possible to have 2 servers running?
Hmm alright, sounds very promising. Ill try to find some online resource to read more about that particular problem. My goto strategy is traversing lots of youtube-guides, but very lacking thus far!
25 replies
DDeno
Created by wingerlang on 10/5/2023 in #help
Deno Deploy - is it possible to have 2 servers running?
Thanks for the very detailed explanations! But lets say Ill go for that strat in the beginning, how do I wire up the code? Right now, I start the REST-API as a ordinary deno server, and then I have the isolated Fresh app in /frontend/(main.ts)?
25 replies
DDeno
Created by wingerlang on 10/5/2023 in #help
Deno Deploy - is it possible to have 2 servers running?
Yeah, and I might have two UI soon. But Ive read some about Deno but obviously im still very noobish - what is even "two functions" refering to here? I mean the backend is deno http with Oak, starting like this: await app.listen({ port: 8080 }); The frontend is in another folder all together and starts like this: await start(manifest, config);
25 replies
DDeno
Created by wingerlang on 10/5/2023 in #help
Deno Deploy - is it possible to have 2 servers running?
Thanks for the reply! Isn't it more pure to seperate them? For instance, I could create an mobile app or text interface that only need the data, seems bad practice's to merge them. But in my case, since they are both written in TS i obviously share some code and they currently share repo. Seems like this use case is not supported? Or should I have two deno projects that point to the same repo but with different entry points?
25 replies