This is an example project for TalkJS's tutorial on how to build a Node.js chat app with TalkJS.
This example demonstrates how to integrate TalkJS with an application that has a Node.js backend. There are two projects inside the repo:
- The
talkjs-backend
project contains the Node.js backend, which serves a REST endpoint with user data. - The
talkjs-frontend
project contains the frontend code, which uses TalkJS's JavaScript SDK to create chats between users.
To run this tutorial, you will need:
-
Clone or download this project.
-
From the
talkjs-backend
directory:- Run
npm install
to build the project - Run
npm start
to start the server and add test users to the database
- Run
-
From the
talkjs-frontend
directory:- Replace
<APP_ID>
inscript.js
with the value found in the Settings tab of your TalkJS dashboard. - Open
index.html
from a browser, or through an extension like VS Code's Live Server, to view the app
- Replace