Skip to content

A CLI tool designed for efficiently managing rooms and servers, facilitating seamless chatting and idea sharing directly from the CLI environment. This innovative tool streamlines communication processes, enabling users to interact, exchange ideas, and collaborate effortlessly without leaving the command line interface.

License

Notifications You must be signed in to change notification settings

Utkarsh4517/fast_chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fast Chat CLI Tool

A command-line interface (CLI) tool for interacting with a chat application built using FastAPI. This tool allows users to create users, create rooms, get room details, and join rooms for chatting and many more (under development).

Table of Contents

Features

  • User Management: Create new users with usernames and passwords.
  • Room Management: Create new chat rooms with room names and creator IDs.
  • Room Details: Retrieve details of existing chat rooms.
  • Chatting: Join existing chat rooms and start chatting with other users.

Setup

Installation

  1. Clone the repository:

    git clone https://github.com/Utkarsh4517/fast_chat.git
  2. Install dependencies:

    pip install -r requirements.txt

Running the FastAPI App

  1. Navigate to the app directory:

    cd fast_chat/app
  2. Run the FastAPI app using Uvicorn:

    uvicorn app:app --reload

Running the CLI

  1. Navigate to the cli directory:

    cd fast_chat/cli
  2. Run the CLI:

    python cli.py <command>

Usage

Creating a New User

To create a new user, run the following command:

python cli.py create_user

Follow the prompts to enter the username and password for the new user.

Creating a New Room

To create a new room, run the following command:

python cli.py create_room

Follow the prompts to enter the room name and creator ID for the new room.

Getting Room Details

To get details of a specific room, run the following command:

python cli.py get_room_details

Follow the prompts to enter the room ID.

Joining a Room

To join a room and start chatting, run the following command:

python cli.py join_room

Follow the prompts to enter your username and the room ID.

Database

The project uses SQLite as the database. The database file is named chat.db and contains tables for storing users, rooms, and messages.

License

This project is licensed under the MIT License.

About

A CLI tool designed for efficiently managing rooms and servers, facilitating seamless chatting and idea sharing directly from the CLI environment. This innovative tool streamlines communication processes, enabling users to interact, exchange ideas, and collaborate effortlessly without leaving the command line interface.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages