Skip to content

TheFeij/Chat-Hub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat Hub

A chat server developed with Golang.

# and chat with other people in the hub!

Chat Page Screenshot Website: https://chat-hub.liara.run

Table of Contents

Introduction

This project is a chat server developed with golang. Users can # in the server and join the chat server where they will be able to chat with other people in the hub. Chats are stored in the server so messages will remain in the chat and users are able to see previous messages

Features

This project uses

  • Gin as its HTTP web framework to develop REST APIs
  • GORM as its ORM to interact with the database
  • Postgresql as the database
  • Gorilla websocket package to handle websocket connections
  • Docker to create docker image of the app
  • PASETO tokens to handle Authorization logic

Usage

#

Choose a username and password and #! # Page Screenshot

Login

If you already have an account, enter your username and password and log in! Login Page Screenshot

Chat

After a Successful login or # now you can chat with other people in the hub! Chat Page Screenshot

API Endpoints

  • POST /api/# ---> # a new user.
  • POST /api/# ---> login user.
  • POST /api/refresh ---> refresh access token.
  • GET /api/chat ---> start a websocket connection with the server