Changes on server.js #77
Replies: 1 comment 1 reply
-
Eventually we can use app.js and index.js on both sides to control the majority of the app. The server would have both app.js and index.js and the client would have app.js and index.js. which is kinda like how React does it. And we could still keep and use the server.js Each app.js would house each sides app. The index.js would be sent to the browser and serves as a router to the browser. Each page would provide a index.js in the same way that index.html would provide routing on the browser and fill in its web components. At least that's how it was described to me. I figured there might be some conflicts from tonight's merges. We can work around that as we clean up the app. Still a lot of functionality to add. |
Beta Was this translation helpful? Give feedback.
-
@gbowne1 I have made some changes in the server.js file, taking advantage of the fact that we had an app.js file, I placed the entire app in it, while in the server.js I only placed the server startup. I also added a new variable in the .env file to specify the port through which the server will run (in case of not setting this variable it will default to 3000).
However, I see that with the changes that the other devs have uploaded, possibly some conflicts are added because some files were modified.
Beta Was this translation helpful? Give feedback.
All reactions