ChitChat is an open source cross-platform instant messaging application, that gives his user access to both server and client code.
First, make sure you have all the required python modules installed by running pip install -r requirements.txt
.
Upon starting main.py
, you will be presented with the following screen:
Insert the server and port of the server you want to connect with.
Then, click on Connect. You will then be prompted with the login form.
If you need to register to the server, click on the New Here? Register
button.
You will be presented with the following screen:
Fill the form with the desidered username and password. Note that there is a limit of 9999
users with the same username, and that the password needs to have at least 12 characters, with at least on lowercase, uppercase and digit.
If you are already registered, fill the form with your login info. Remember that your tag is the number that you got assigned after your registration.
You will be presented with the following:
In red are highlighted (from left to right, from top to bottom):
more
button. Currently, it will only allow you to logout. Note that closing the app normally will log you out from the server, but it is not guaranteed to be instantaneous and it can take up to 60 seconds (the timeout time).New Chat
button, which opens the wizard for creating a new chat with another user. Note that multi user chat are actually natively supported by the server/database, but are yet to be implemented on GUI. If you or the server owner modifies the database to have more than two participants on a chat, it will work fine and become a group chat. For this reason, you can also create multiple chats with the same user, as it is technically a group chat.
You will be presented with this.
Insert a chat name, chat description, username and user tag and you are ready to go!
Note that, while the description is not yet visualized in the GUI, it is still stored on both server and client files, so that you won't lose the descriptions and you will be hopefully be able to see them in a release or two.
If the user you selected does not exist, an error will show. Else, the chat will be created, and will pop up in your chats.
This is a typical chat screen.
If you need help understanding how to use that, you should not use this app.
First, make sure you have all the required python modules installed by running pip install -r requirements.txt
.
Then, make sure your database management system is open to connections from your local machine.
Create a database named "chitchat" using a mysql engine. We used MariaDB
, but you may be able to make it work with other engines.
Run in order:
Tables.sql
queries.sql
This setup needs to be only done once.To start the server simply execute server.py
. The server should be ready and running.