This project was bootstrapped with Create React App. This is a frontend chatbot application that's meant to be connected with a backend API. For more information visit https://sell247.ai
NodeJS & npm/yarn, Git
Create a file in the project root directory called .env
and add the following content with the respective information from the backend team
REACT_APP_API_SERVER_URL='https://<your-api-url>'
REACT_APP_API_USERNAME='username'
REACT_APP_API_PASSWORD='password'
REACT_APP_API_KEY='<your-api-key>'
REACT_APP_HOSTED_LOCATION = '<link-where-deployed>'
- Clone or download the repository - Open a terminal
git clone https://github.com/ashvinpanicker/react-tsx-chatbot
cd react-tsx-chatbot
and then install packages withnpm install
oryarn install
yarn start
ornpm run start
- Open http://localhost:3000 to view it in the browser.
Since this a static site, I host it on https://render.com for free Sign up for an account and connect the repository via github to deploy automatically
To deploy on a server, in the project directory, you can run:
npm run build
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
To learn React, check out the React documentation.