ChitChat is a real-time chat application built with Go. It leverages WebSockets for real-time communication and uses Gorilla Mux for routing. The application also integrates with MySQL for data storage and JWT for authentication.
- Real-time messaging
- User authentication with JWT
- Persistent storage with MySQL
- Environment configuration with
godotenv
- Logging with Logrus
- Go 1.21.3 or higher
- MySQL database
-
Clone the repository:
git clone https://github.com/similadayo/chitchat.git cd chitchat
-
Install dependencies:
go mod tidy
-
Set up environment variables: Create a
.env
file in the root directory and add your environment variables (e.g., database credentials). -
Run the application:
go run main.go
- Open your browser and navigate to
http://localhost:8080
. - Register or log in to start chatting in real-time.
This project is licensed under the MIT License. See the LICENSE file for details.