- Install PostgreSQL On your local machine, download PostgreSQL via the following link: https://www.postgresql.org/download/ The installation process differs on each OS, but make sure to keep the default settings of the database port number and ip address. This is typically 'localhost' and 5432 respectively. Additionally, keep note of your password, it will be needed to connect to the database.
- Enter your shell and navigate to the directory with the source code.
- Install Python Dependencies Install the required dependencies using the following command: run pip install -r requirements.txt
- Set Up Database Run the setup script setup_db.sh to create the necessary database for the application. Ensure the script has executable permissions by running chmod +x setup_db.sh Then, execute the script: ./setup_db.sh
- Run the Application Launch the main application by running the following command, replacing "PASSWORD" with your chosen database password as done in step 1: python main.py "PASSWORD"
- Within the console application, follow the login/sign-up process to begin chatting with other peers in the network
- Repeat steps 5 & 6 in order to sign-up/log in as another peer, so that you try the chatting process as shown in the video
- Exit the Application: Press ctrl+c in each respective terminal to close the chat application.
-
Notifications
You must be signed in to change notification settings - Fork 0
Sam-Lara/DistributedChatApplication
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
A distributed chat application using Python
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published