Next (hehehe) step will be to make a simple guess-the-number-game in Next.js.
Next (hehehe) step will be to make a simple guess-the-number-game in Next.js.
Seems like the “api”-folder is the place for such things. Feels stateless on first look. Let’s see.
I guess the actual question is, whether it’s able to keep a state in sync with the front-end. Maybe I’m thinking too much in the direction of Phoenix and LiveView here.
Starting to look into Next.js and similar approaches. I wonder if it’s possible to do stuff on the (Node-)Server only, like game-logic that the client shouldn’t see. Or server-calls to counter CORS-issues. Or is it just for constructing DOM for that initial render…
Hello, Sailor!