Code Monkey home page Code Monkey logo

chat-hub's Introduction

Chat Hub

A chat server developed with Golang.

Signup 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 sign up 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

Sign Up

Choose a username and password and sign up! Sign up 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 signup now you can chat with other people in the hub! Chat Page Screenshot

API Endpoints

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

chat-hub's People

Contributors

thefeij avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.