![]() Babelīabel helps us to write code in the latest version of JavaScript. Backend Node.js/Express code will be in the server directory. All the frontend code (react, css, js and any other assets) will be in client directory. Inside src, there is client and server directory. Details Folder StructureĪll the source code will be inside src directory. All the client side code will be bundled into static files using webpack and it will be served by the Node.js/Express application. In the production mode, we will have only 1 server running. The server side Express code will be served by a node server using nodemon which helps in automatically restarting the server whenever server side code changes. The front end code will be served by the webpack dev server which helps with hot and live reloading. ![]() In the development mode, we will have 2 servers running. ![]() # Start production server yarn start (or npm start) Development mode
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |