webpack-autoconf icon indicating copy to clipboard operation
webpack-autoconf copied to clipboard

Suggestion: How about adding express.js?

Open bitsnaps opened this issue 4 years ago • 2 comments

Usually we need a backend framework for reseving an api, how can this be added without creating two extra directories client and server with one starting script for convenience?

bitsnaps avatar May 25 '20 13:05 bitsnaps

I have thought about adding support for express. But not sure what you mean by "without creating two extra directories client and server with one starting script for convenience". It's a common practice to have one client and one server dir because it's two different code bases. Could you describe more what you mean, or link to a boilerplate where your suggested practice is implemented?

jakoblind avatar Jun 03 '20 06:06 jakoblind

I know this sounds bit weird, keep thing separated is definitely the best practice, just for the sake of simplicity sometimes we want to keep the focus on the client side when creating prototypes we used to put everything in app.js (or server.js) and running express.js on a different port (ex. 3000). https://github.com/bitsnaps/webpack-course

bitsnaps avatar Jun 03 '20 10:06 bitsnaps