react-express-starter
react-express-starter copied to clipboard
Proxy error
Hi,
I have the next issue when I press submit with some input.
My workstation: -Windows 10 -Node v15.0.0 -Npm 7.10.0
Do you know what could be the problem ?
How are you running the application?
npm run dev
Did you create an .env
file? Without an .env
file, even a blank one, the server will fail to start. But in the terminal the React application will take over and appear to be working.
Worked! What would you change for deployment ?
בתאריך יום ב׳, 3 במאי 2021 ב-2:38 מאת Phil Nash < @.***>:
Did you create an .env file? Without an .env file, even a blank one, the server will fail to start. But in the terminal the React application will take over and appear to be working.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/philnash/react-express-starter/issues/22#issuecomment-830926790, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM2ASRBSIMKDQAUMPR6OIV3TLXO57ANCNFSM436CSXAQ .
Deploying can be done in so many ways it's hard to give good advice without being prescriptive about the environment you want to deploy to. However, the npm run dev
command is very much only a command you should run for development.
When it comes to deploying, you will want to build the React application into a static output and host that somewhere. The server side of it could be run with just node server
but that is not fault tolerant in a basic hosting environment.
I have another project that is based off this repo and I made some changes that would make it deployable to Heroku, which you can see here with instructions once you've made those changes here.
Let me know if that helps.