exotic-emerald•16mo ago
deploying react chat
The youtube video showing how to fork and deploy the react chat is outdated is there a new video or steps showing how to deploy it as the documentation on the repo is unclear
2 Replies
To deploy the React Chat application, you can follow these steps:
1. Clone the Repository: First, you need to clone the demo-react-chat repository to your local machine. You can do this by running the command
git clone https://github.com/voiceflow/demo-react-chat.git
in your terminal.
2. Navigate to the Server Directory: Once you have cloned the repository, navigate to the server directory by running cd demo-react-chat
.
3. Install Dependencies: Install the necessary dependencies by running yarn install
or npm install
in your terminal.
4. Set Up Environment Variables: You will need to set up environment variables for your project. These can usually be found in a .env
file in the root directory of your project. The exact variables you need to set up will depend on the specifics of your project.
5. Start the Server: You can start the server by running yarn dev
or npm run dev
in your terminal. This will start the server on your local machine.
6. Open the Application: You can now open the application in your browser by navigating to http://127.0.0.1:3006
.
Please note that the demo-react-chat code is not production safe. You can find more details about this in the repository's README file here.
Also, remember that you need to have an active Voiceflow and Intercom account and workspace to integrate Voiceflow with Intercom. You can learn more about this here.
I hope this helps! If you have any other questions, feel free to ask.exotic-emeraldOP•16mo ago
how to deploy it on other websites ?