Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main #21

Open
wants to merge 62 commits into
base: main
Choose a base branch
from
Open

Main #21

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
ef80671
Update index.html
ZeroZen270 Dec 13, 2022
055f66d
Update app.js
ZeroZen270 Dec 16, 2022
f515b24
Update app.js
ZeroZen270 Dec 16, 2022
dc09338
Update app.js
ZeroZen270 Dec 16, 2022
17f7894
updated connection variables
ZeroZen270 Dec 16, 2022
49ddb97
Update app.js
ZeroZen270 Dec 16, 2022
f0617ee
fixed a syntax error
ZeroZen270 Dec 16, 2022
1afd107
Update app.js
ZeroZen270 Dec 16, 2022
ae79701
added mysql connector
Dec 16, 2022
e338ff7
Create demo_db_connection.js
ZeroZen270 Dec 16, 2022
096ab20
Update app.js
ZeroZen270 Dec 16, 2022
661f769
Update demo_db_connection.js
ZeroZen270 Dec 16, 2022
5b886de
Update demo_db_connection.js
ZeroZen270 Dec 16, 2022
b0f9c17
Update index.html
ZeroZen270 Dec 16, 2022
6df967f
Update app.js
ZeroZen270 Dec 16, 2022
bb84556
Update index.html
ZeroZen270 Dec 16, 2022
f8d122b
Update app.js
ZeroZen270 Dec 16, 2022
87fb304
Update app.js
ZeroZen270 Dec 16, 2022
20fd7ae
Update app.js
ZeroZen270 Dec 16, 2022
7539f97
Update app.js
ZeroZen270 Dec 16, 2022
107c327
Delete demo_db_connection.js
ZeroZen270 Dec 16, 2022
501dcc9
Update app.js
ZeroZen270 Dec 16, 2022
1027f6e
Update app.js
ZeroZen270 Dec 16, 2022
c5c49be
Update app.js
ZeroZen270 Dec 16, 2022
0e9c98c
Update package.json
ZeroZen270 Dec 16, 2022
ed4ca85
Update server.js
ZeroZen270 Dec 16, 2022
9035327
Update app.js
ZeroZen270 Dec 16, 2022
48a168b
Update server.js
ZeroZen270 Dec 16, 2022
66e9008
Update server.js
ZeroZen270 Dec 16, 2022
75267e3
Update app.js
ZeroZen270 Dec 16, 2022
0ac5635
Update app.js
ZeroZen270 Dec 16, 2022
faa42af
Update app.js
ZeroZen270 Dec 16, 2022
5d4b561
Update obs.html
ZeroZen270 Dec 16, 2022
8a45c1a
Update app.js
ZeroZen270 Dec 16, 2022
5fa6579
Update package.json
ZeroZen270 Dec 16, 2022
ca33dfd
Update package.json
ZeroZen270 Dec 16, 2022
ede2998
Update index.html
ZeroZen270 Dec 16, 2022
3dd6d18
Update app.js
ZeroZen270 Dec 16, 2022
369f1bf
Update package.json
ZeroZen270 Dec 16, 2022
6dafd2f
Update app.js
ZeroZen270 Dec 16, 2022
6ad377c
Update app.js
ZeroZen270 Dec 16, 2022
6c89331
Update index.html
ZeroZen270 Dec 16, 2022
478aac1
Create require.js
ZeroZen270 Dec 16, 2022
4d90ee6
Update index.html
ZeroZen270 Dec 16, 2022
14c90a7
Rename public/app.js to public/scripts/app.js
ZeroZen270 Dec 16, 2022
fb0d8cc
Update index.html
ZeroZen270 Dec 16, 2022
b6eb911
Rename public/scripts/app.js to public/app.js
ZeroZen270 Dec 16, 2022
ebbcc6e
Create require.js
ZeroZen270 Dec 16, 2022
9006034
Delete require.js
ZeroZen270 Dec 16, 2022
3e1aba6
Update index.html
ZeroZen270 Dec 16, 2022
b91b0c8
Update app.js
ZeroZen270 Dec 16, 2022
88181ae
Update app.js
ZeroZen270 Dec 16, 2022
9aea6e6
Update index.html
ZeroZen270 Dec 16, 2022
3ab70db
Update app.js
ZeroZen270 Dec 16, 2022
5c91405
Update README.md
ZeroZen270 Dec 17, 2022
47091b9
Delete require.js
ZeroZen270 Dec 17, 2022
e140415
Update app.js
ZeroZen270 Dec 17, 2022
2ea392d
Update package.json
ZeroZen270 Dec 17, 2022
bfba7ba
Update index.html
ZeroZen270 Dec 17, 2022
11faedb
Update app.js
ZeroZen270 Dec 17, 2022
a6c8380
Update app.js
ZeroZen270 Dec 17, 2022
3460e90
Update package.json
ZeroZen270 Dec 17, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file added .vs/slnx.sqlite
Binary file not shown.
17 changes: 0 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
# TikTok-Chat-Reader
A chat reader for <a href="https://www.tiktok.com/live">TikTok LIVE</a> utilizing <a href="https://github.com/zerodytrash/TikTok-Live-Connector">TikTok-Live-Connector</a> and <a href="https://socket.io/">Socket.IO</a> to forward the data to the client. This demo project uses the unofficial TikTok API to retrieve chat comments, gifts and other events from TikTok LIVE.

## Demo: https://tiktok-chat-reader.zerody.one/

## Installation
To run the chat reader locally, follow these steps:

1. Install [Node.js](https://nodejs.org/) on your system
2. Clone this repository or download and extract [this ZIP file](https://github.com/zerodytrash/TikTok-Chat-Reader/archive/refs/heads/main.zip)
3. Open a console/terminal in the root directory of the project
4. Enter `npm i` to install all required dependencies
5. Enter `node server.js` to start the application server

Now you should see the following message: `Server running! Please visit http://localhost:8091`<br>
Simply open http://localhost:8091/ in your browser. Thats it.

If you have problems with Node.js, you can also just open the `index.html` from the `public` folder.<br>
This will use the server backend of the [demo site](https://tiktok-chat-reader.zerody.one/), which is sufficient for testing purposes. If you want to offer it to others or make many connections at the same time, please consider using your own server.

## Screenshot

Expand Down
186 changes: 179 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 20 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
{
"name": "nodejs-mysql",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"dotenv": "^16.0.0",
"express": "^4.17.2",
"socket.io": "^4.4.1",
"tiktok-live-connector": "^1.0.0"
"express": "^4.18.1",
"mysql": "^2.18.1"
},
"devDependencies": {
"dependencies": {
"dotenv": "^16.0.0",
"express": "^4.17.2",
"mysql": "^2.18.1",
"socket.io": "^4.4.1",
"tiktok-live-connector": "^1.0.0"
}
}