Code Monkey home page Code Monkey logo

chat-application's Introduction

Chat Application

This a small application written to learn FastAPI and Python. It uses FastAPI and Websockets to create a small Chat app.

Security

Your passwords are hashed using bcrypt and passlib. The key is currently public so please replace the key if you really want to host a server. Your Account is per Server. Do not trust any Server you do not know and DON'T use your NORMAL Password for servers that you don't own. Because the password is sent in plaintext over either HTTP or HTTPS, the password is encrypted server side, not on your client. So they could just steal it without you knowing. So be careful please.

Usage

Install all the dependencies with:

pip install -r requirements.txt

Start the backend with the following command:

uvicorn server.server:app

Then you should run the cli. On the first prompt, type "y" and press enter. Then create a user account. After that you can directly log into the new account. To test the chat, you can open a second terminal with the command from below, create a second account and log into that.

Then just start writing. When you press enter, the message will be send.

python3 cli.py --host localhost:8000

chat-application's People

Contributors

robaertschi avatar

Stargazers

 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.