philnash / twilio-video-react-hooks

A video chat application built with Twilio Video and React Hooks
MIT License
110 stars 61 forks source link

Will it work if we try to integrate this app into an existing serverless(react and firebase) react app? #13

Closed souravdewett closed 4 years ago

souravdewett commented 4 years ago

How can we deploy it on netlify or heroku?

philnash commented 4 years ago

What you need for this app to work is an endpoint that can return a Twilio Video Access Token. In this application that is handled by the Express server but that could certainly be done on Firebase or Netlify Functions or Heroku. Then the front end needs to know where that endpoint is when it asks for the token here.

Does that help?

souravdewett commented 4 years ago

I tried deploying it on heroku it gives me me a page where it says "invalid host header".

souravdewett commented 4 years ago

@philnash can you please help me deploy it on heroku? It's really important for me.

philnash commented 4 years ago

So, this isn't set up particularly well for deploy to heroku right now. I'm going to spike a branch that should make it easier though, will let you know how that goes.

philnash commented 4 years ago

I have made the changes that this would need and tried a test deploy to Heroku successful. Check out the changes I made here.

Check out the instructions for deploying to Heroku here.

Let me know if that helps and I will merge the branch into master.

souravdewett commented 4 years ago

Worked like a charm. Thank you very much. You are a life saver.

philnash commented 4 years ago

Glad to hear that worked for you. I guess you are developing an application with this? Can you share what you are building? Drop me an email me at philnash [at] twilio [dot] com, I'd love to know what you are using Twilio Video for.

Thanks!