Deploying Stream Chat (React) to Netlify and Heroku
Blog post from Stream
Building and deploying a React Chat application using Stream's Chat API involves a few key steps, including setting up a React app on Netlify and a Node server on Heroku. The process begins with creating an account on Stream to obtain application access keys, followed by setting up a MongoDB Atlas cluster for storing user data. After configuring database access and capturing the connection string, the Node server is deployed to Heroku using the Heroku CLI, where necessary environment variables are set. For the React application, a Netlify account is created, and the Netlify CLI is used to deploy the application after adjusting the App.js file to point to the Heroku server URL. The deployment utilizes Git for pushing code to Heroku and offers automated build support for a more efficient workflow, allowing the chat application to be tested via a draft URL before pushing to production.