Skip to content

CLI-Chat is implemented using Go, MongoDB and Python. It operates as a lightweight command-line chat client and server, offering basic message exchange and authentication through a REST API. The project does not use advanced frameworks but leverages essential libraries from both languages for HTTP handling and JSON process

License

Notifications You must be signed in to change notification settings

TanishkBansode/cli-chat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

CLI-Chat is implemented using Go, MongoDB and Python. It operates as a lightweight command-line chat client and server, offering basic message exchange and authentication through a REST API. The project does not use advanced frameworks but leverages essential libraries from both languages for HTTP handling and JSON process

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 56.3%
  • Python 43.5%
  • Batchfile 0.2%