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-backendproject contains the Node.js backend, which serves a REST endpoint with user data. - The
talkjs-frontendproject contains the frontend code, which uses TalkJS's classic JavaScript SDK to create chats between users.
To run this tutorial, you will need:
-
Clone or download this project.
-
From the
talkjs-backenddirectory:- Run
npm installto build the project - Run
npm startto start the server and add test users to the database
- Run
-
From the
talkjs-frontenddirectory:- Replace
<APP_ID>inscript.jswith the value found in the Settings tab of your TalkJS dashboard. - Open
index.htmlfrom a browser, or through an extension like VS Code's Live Server, to view the app
- Replace