GoChat is a real-time chat application built in Go using WebSockets. It allows users to connect and send messages in a web environment.
/GoChat
├── /cmd
│ └── main.go # Punto de entrada de la aplicación
├── /internal
│ └── /websocket
│ └── websocket.go # Lógica para manejar las conexiones WebSocket
├── /web
│ ├── /static
│ │ ├── index.html # Archivo HTML principal
│ │ └── styles.css # Estilos CSS
│ └── /assets
│ └── /js
│ └── chat.js # Lógica del chat en JavaScript
- Real-time chat: Messages are sent and received instantly.
- Simple interface: A minimalist design that makes it easy for users to interact.
- Go: The main programming language for the backend.
- WebSockets: For real-time communication between the server and clients.
- HTML/CSS/JavaScript: For building the user interface.
-
Clone the repository.
-
Navigate to the project folder.
-
Run the server with the following command:
go run cmd/main.go