Home / Companies / Stream / Blog / Post Details
Content Deep Dive

Build a Chat App with Stream & Kong

Blog post from Stream

Post Details
Company
Date Published
Author
Uk C.
Word Count
2,592
Language
English
Hacker News Points
-
Summary

API gateways like Kong simplify the management of microservices by handling administrative tasks, allowing developers to focus on building features. This tutorial demonstrates the creation of a live chat application using Stream Chat and a backend microservice managed through Kong's API gateway. The setup requires Docker, Node.js, and npm or yarn, with Svelte for the frontend and Express for the backend. The process involves registering a Stream account, setting up Kong with Docker, and configuring the microservice to work with Kong by establishing a Docker network and database. The backend microservice is built using Express and includes endpoints for user authentication and server status checks. The frontend, developed with Svelte and styled using Tailwind CSS, connects to the microservice via Kong, facilitating user login and chat functionality. The tutorial includes steps to configure environment variables, CSS preprocessing, and routing requests through Kong, concluding with a demonstration of the chat app's functionality.