TwilioReact icon indicating copy to clipboard operation
TwilioReact copied to clipboard

Cannot GET / appears on localhost:3000

Open AmanSonii opened this issue 5 years ago • 4 comments

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.

image

AmanSonii avatar Jan 08 '20 14:01 AmanSonii

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.

Willgg avatar Mar 19 '20 15:03 Willgg

i still have the same error even I change twilio credentials.

san8work avatar Apr 21 '20 15:04 san8work

I can only get it running by doing npm run build and then running a server from ./dist and using the build code.

goldingdamien avatar May 20 '21 15:05 goldingdamien

Token becomes wrong port though. Probably need to update app/VideoComponent.js axios.get('/token') with actual port of server.

goldingdamien avatar May 20 '21 15:05 goldingdamien