This repository contains the code for a chat application developed as part of a computer networks course project. The application consists of a backend server written in Go and a frontend application built with Next.js.
Tech Stack:
- Backend: Go (Gin, Gorilla WebSocket, MongoDB)
- Frontend: Next.js, React, TypeScript, Tailwind CSS
To run the backend server, navigate to the backend directory and execute the following command:
cd backend && go run ./cmd/serverTo generate wire dependencies, use:
cd backend/cmd/server && wire .To install dependencies for the frontend application, navigate to the frontend directory and run:
cd frontend && pnpm installTo run the frontend application, navigate to the frontend directory and execute:
cd frontend && pnpm run devYou can also run the entire application using Docker Compose. Make sure you have Docker and Docker Compose installed, then run:
docker-compose up --buildThis will start both the backend and frontend services along with a MongoDB database.
