Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hendriknielaender/zig-htmx
Example chat app written in zig + htmx
https://github.com/hendriknielaender/zig-htmx
chat htmx websockets zap zig
Last synced: 2 months ago
JSON representation
Example chat app written in zig + htmx
- Host: GitHub
- URL: https://github.com/hendriknielaender/zig-htmx
- Owner: hendriknielaender
- License: mit
- Created: 2024-01-11T16:52:12.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-04T15:37:35.000Z (10 months ago)
- Last Synced: 2024-08-03T17:09:58.587Z (4 months ago)
- Topics: chat, htmx, websockets, zap, zig
- Language: Zig
- Homepage:
- Size: 44.9 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-htmx - zig-htmx - Example chat app written in zig + htmx (websockets). (Examples by Back-end / Zig)
README
# Zig-HTMX Chat Application
## Overview
The Zig-HTMX Chat Application is a real-time chat platform that combines the power of Zig for server-side operations with HTMX on the frontend. This application uses WebSockets for seamless, real-time communication between users.
## Features
- **Real-Time Messaging:** Instantly send and receive messages using WebSockets.
- **Zig Backend:** Utilizes the efficiency and safety of Zig programming language.
- **HTMX Frontend:** Dynamic and responsive UI without writing JavaScript.
- **Minimalist Design:** Easy-to-use interface focusing on functionality.## Prerequisites
Before running the Zig-HTMX Chat Application, ensure you have the following installed:
- Zig (latest version)
- A modern web browser supporting HTMX and WebSockets## Installation
1. **Clone the Repository**
```bash
git clone https://github.com/hendriknielaender/zig-htmx.git
cd zig-htmx
```
1. **Build the Zig Server(zap)**
```bash
zig build
```
1. **Run the server**
```bash
zig-out/bin/zig-htmx
```
1. **Access the Application**
```bash
Open your web browser and go to http://localhost:3010.
```