TwilioReact
TwilioReact copied to clipboard
Cannot GET / appears on localhost:3000
I have cloned the project successfully but after running the npm start I got the Cannot GET / message on the browser and localhost:3000 not found.
You have to edit .env.template
file with your own twilio credentials and rename it .env
.
The file server.js need to know process.env.NODE_ENV
and it is defined in the .env file.
i still have the same error even I change twilio credentials.
I can only get it running by doing npm run build
and then running a server from ./dist and using the build code.
Token becomes wrong port though. Probably need to update app/VideoComponent.js axios.get('/token') with actual port of server.