Coder Social home page Coder Social logo

authordottle / simplemessagingapp Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 17 KB

This is a simple messaging app using terminal as chat screen.

Python 100.00%
computer-networking-and-internet-technologies cse-3461 ohio-state-university undergraduate-course

simplemessagingapp's Introduction

Messaging App

Jiaqian Huang.2366

What makes it

Files: one client.py, one server.py, and db.txt for database


** Notice: In this project, the notification will pop up in the window. The user needs to turn off the window to see the next message.
** Notice: If multiple clients run on the local IP, users can check their messages in the terminal clearly after closing the window in case they don't know whom those windows belong to. If clients run on different laptops, windows can be enough.

Prerequisite

  1. Version: python3 <=
  2. Same MAC/Linux Only

How to start

  1. ln the terminal, cd into server folder and open the server.py
{versionOfPython} server.py
  1. ln another terminal, cd into server folder and open the client.py
{versionOfPython} client.py

** Notice: More connections can be made by adding running client.py in other terminals.

  1. To login:
login {username} {password}

**Notice: A notification will pop up to warn the user if the user inputs a non-existed userID or wrong password.

  1. To register:
register {username} {password}

**Notice: A notification will pop up to warn the user if the userID already existed.

  1. After login send the message:
msg {username} {message_data}

**Notice: A notification will pop up to warn the user if the user is not logged in or is not online.

  1. To log out:
logout {username}

** Notice: Still need to use the ^C to stop the client.py in this terminal, logout command line here only helps make user offline.


** Notice: Assume no same user logged into the different terminals, command line inputs are following the format above

Feedback

Need to allow client on machine 1, client on machine 2, server on machine 3, which means the client will ask the IP (and port) of server.

simplemessagingapp's People

Contributors

authordottle 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.