Clone the project repository by running the command below if you use SSH
$ git clone [email protected]:kayzinsoedev/html-chatbox.git
If you use https, use this instead
$ git clone https://github.com/kayzinsoedev/html-chatbox.git
After cloning,run:
$ npm install
To get started, sign up for Chatkit. Then create a Chatkit instance.
Open server.js and replace INSTANCE_LOCATOR and SECRET_KEY with your instance keys. Also, INSTANCE_LOCATOR inside index.html.
Finally, start the server:
$ node server.js
Then the client:
$ http-server
Note: I'm using
http-severto start the client, you can use your preferred development server.
and visit http://localhost:8080/ to see the application in action.