react-express-starter icon indicating copy to clipboard operation
react-express-starter copied to clipboard

How would you deploy this to a server?

Open nz-chris opened this issue 5 years ago • 5 comments

Especially wondering how deploying this to a server would work when webpack is involved? Can you 'build' this? If so, how? Sorry if my question is vague, I'm a beginner! Any help is much appreciated.

Thanks for your tutorial.

nz-chris avatar Apr 22 '19 06:04 nz-chris

This is a good question and one I haven’t addressed and I should.

You can build the React front-end with the command npm run build. Currently the server side is not setup for production (the dependencies are in devDependencies) but you could adapt that.

Sorry for the short message though, I’m currently on holiday so away from my laptop.

philnash avatar Apr 22 '19 10:04 philnash

Thanks for your reply.

Currently the server side is not setup for production (the dependencies are in devDependencies) but you could adapt that.

I will try and split out the server side into its own 'project' with its own package.json and see where I can get from there. My main concern is that I hope to maintain the convenience of the npm run dev script.

I'll update here when I get somewhere (or if I get stuck).

nz-chris avatar Apr 22 '19 22:04 nz-chris

Any luck deploying the app?

addempsea avatar Oct 23 '20 10:10 addempsea

Any updates on this?

emorling avatar Jan 21 '21 13:01 emorling

@nz-chris Any updates on this?

ajax22 avatar Apr 21 '21 17:04 ajax22