MENU

Fun & Interesting

Building a NestJS API | Twitch Chat Dashboard Pt.2

Michael Fioretti 65 lượt xem 1 week ago
Video Not Working? Fix It Now

In the first part of this series, I showed how I was saving Twitch messages to a database via Go.

In part two, I’ll cover the architecture, caching strategies, and how I compute real-time stats efficiently using NestJS. This project pulls Twitch chat data from our MongoDB database and exposes a few public endpoints. These endpoints will be used later to build a dashboard.
-------------------------------------------------
Github repo: https://github.com/michaelfioretti/twitch-chat-api
API Url: https://twitch-chat-api.onrender.com

Endpoints:

- /api/chat - Used for fetching chat message statistics. Can be filtered by Twitch channel by using `?channels=channel1,channel2,channel3
- /api/bits - Used for fetching messages with bits statistics. Can be filtered by Twitch channel by using `?channels=channel1,channel2,channel3
- /api/streamer/top10 - Gets the top 10 streamers by total number of messages sent in their chats.
-------------------------------------
About Me
I’m a self-taught software engineer sharing my journey through projects, tips, and general advice from one dev to another.

🌐 Connect with Me
Github: https://github.com/michaelfioretti
LinkedIn: https://linkedin.com/in/michael-fioretti

#programming #nestjs #backenddevelopment #nodejs #apidevelopment

Comment