Hi Eugene,
For a full stack Next project, I still prefer to create client & server folder right under src. The server folder structure differs then the client folder, in the sense all server logic, like DB interactions, authentication, goes under server folder, but all UI related logic and routes goes under client folder.
I try to keep it separate just like any react project, even when it is using NExt.js where everything is on the server side.
Also, look at https://github.com/oh-my-c0de/oh-my-fullstack, it has skeleton project for your need. Use it as starting point, and then come up with your own folder structure.
Hi Eugene,
For a full stack Next project, I still prefer to create
client
&server
folder right undersrc
. The server folder structure differs then the client folder, in the sense all server logic, like DB interactions, authentication, goes under server folder, but all UI related logic and routes goes under client folder.I try to keep it separate just like any react project, even when it is using NExt.js where everything is on the server side.
Also, look at
https://github.com/oh-my-c0de/oh-my-fullstack
, it has skeleton project for your need. Use it as starting point, and then come up with your own folder structure.Thank you.