Skip to content

Commit 8e0a7e2

Browse files
authored
Merge pull request #437 from edznan/how-to-make-a-clickable-avatar-in-a-header
clickable avatar inside a header example
2 parents 80427ea + 480e958 commit 8e0a7e2

File tree

8 files changed

+1936
-0
lines changed

8 files changed

+1936
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
This is an example project for TalkJS's tutorial on how to make a clickable avatar that links to the user’s profile.
2+
3+
This project uses TalkJS's [custom header feature](https://talkjs.com/docs/Features/Customizations/Creating_Custom_Headers/). The custom header in this example contains a link that leads to user's profile page.
4+
5+
The frontend fetches the data from a backend ExpressJS server that returns the list of users, the information about the current user and the current template.
6+
7+
## Prerequisites
8+
9+
To run this tutorial, you will need:
10+
11+
- A [TalkJS account](https://talkjs.com/dashboard/login)
12+
- [Node.js](https://nodejs.org/en)
13+
- [npm](https://www.npmjs.com/)
14+
15+
## How to run the tutorial
16+
17+
1. Clone or download the project
18+
2. Replace `<APP_ID>` in `server.js` with the value found in your [TalkJS dashboard](https://talkjs.com/dashboard/login).
19+
3. Run `npm install` to install dependencies.
20+
4. Run `npm start` to start the server.

0 commit comments

Comments
 (0)