Skip to content

Latest commit

 

History

History
99 lines (70 loc) · 1.12 KB

README.md

File metadata and controls

99 lines (70 loc) · 1.12 KB

Chat-CLI

A simple mail-like client and server!

Logo

Initialization

Change the username and password to your username and password in config.json

{
    "username": username,
    "password": password
}

Change the database string in controller.go package

const connectionString = your_database_string

API Reference

SignUp

  POST /api/signup
{
    "username": username,
    "password": password
}

Login

  POST /api/login
{
    "username": username,
    "password": password
}

Get all messages

  POST /api/getall
{
    "username": username,
    "password": password
}

Get all unread messages

  POST /api/getunread
{
    "username": username,
    "password": password
}

Send message

  POST /api/send
{
	"sender": sender_username,
	"receiver": receiver_username,
	"message": message
}

Authors