Skip to content

Latest commit

 

History

History

basic-example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

TalkJS and Node.js backend example

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.

Prerequisites

To run this tutorial, you will need:

How to run the tutorial

  1. Clone or download this project.

  2. From the talkjs-backend directory:

    1. Run npm install to build the project
    2. Run npm start to start the server and add test users to the database
  3. From the talkjs-frontend directory:

    1. Replace <APP_ID> in script.js with the value found in the Settings tab of your TalkJS dashboard.
    2. Open index.html from a browser, or through an extension like VS Code's Live Server, to view the app