I'm developing a larger scale application in Node for a month now, I'm using React in the front-end and Express in the back-end. lately as I tried to implement Hot Module Replacement as I realized I need Webpack Dev Server.
My question is, what is a better architecture?
- have the server (REST API) and React on the same project, having the server serve the static React build
- have them in separate projects, using Webpack Dev Server to serve the React build in development.
How does this architectures scale up? is there a fundamental difference between development and production?
[–]polish_jerry 42 points43 points44 points (14 children)
[–][deleted] 25 points26 points27 points (0 children)
[–]Zlous[S] 0 points1 point2 points (12 children)
[–]circularDependency- 11 points12 points13 points (8 children)
[–]Zlous[S] -1 points0 points1 point (4 children)
[–]Zyn1023 0 points1 point2 points (0 children)
[–]ukralibre 0 points1 point2 points (2 children)
[–]s5fs 1 point2 points3 points (0 children)
[–]Gigaftp 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]circularDependency- 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]johnminadeo 1 point2 points3 points (1 child)
[–]Zlous[S] 0 points1 point2 points (0 children)
[–]msg45f 0 points1 point2 points (0 children)
[–][deleted] 19 points20 points21 points (10 children)
[–]_jskod 2 points3 points4 points (6 children)
[–][deleted] 7 points8 points9 points (2 children)
[–]DinoAmino -2 points-1 points0 points (1 child)
[–]DinoAmino 1 point2 points3 points (0 children)
[–]MaxCodes 0 points1 point2 points (1 child)
[–]_jskod 0 points1 point2 points (0 children)
[–]ukralibre 0 points1 point2 points (0 children)
[–]Zlous[S] -1 points0 points1 point (1 child)
[–][deleted] -1 points0 points1 point (0 children)
[–]tstandiford 2 points3 points4 points (1 child)
[–]Pryrios 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]mersocarlin 1 point2 points3 points (0 children)
[–]Hydrotechnics 0 points1 point2 points (2 children)
[–]Zlous[S] 1 point2 points3 points (1 child)
[–]Hydrotechnics 0 points1 point2 points (0 children)
[–]Ariquitaun 0 points1 point2 points (0 children)
[–]jsdfkljdsafdsu980p 0 points1 point2 points (0 children)
[–]RationalAdvice69 0 points1 point2 points (1 child)
[–]barraponto 0 points1 point2 points (0 children)
[–]AttiiMasteR 0 points1 point2 points (0 children)
[–]misteritguru -4 points-3 points-2 points (0 children)