djizco / mern-boilerplate

A Full MERN Stack Boilerplate for Web Apps including a local authentication system. Uses React, Express.js, MongoDB, Redux, Passport.js, Webpack, Testing, and more.
MIT License
273 stars 93 forks source link

How are you shipping the server to build folder ? #6

Open krishnaUIDev opened 3 years ago

djizco commented 3 years ago

The server simply runs off the server/index.js file, it doesn't compile to any build folder. The compiled dist only contains the client build. Depending on how you want to deploy your application, you may have to set up an environment to run the server code.