Skip to content

networking :- chatting, creating servers, databases

Notifications You must be signed in to change notification settings

Hirukshacoder/THB-NET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

thb net (2)

THB - NET

  • An app to chat, create new servers, learn databases, enjoy!

python sqlite

Installation

Install THB-NET with git

$ git clone https://github.com/Hirukshacoder/THB-NET
$ cd THB-NET
$ pip install -r requirements.txt
$ python3 client.py

Documentation

~ client.py ~

  • Signup - creates database_mine.db
  • Login
  • Create new servers
  • Join to existing servers
  • Performs most of the part of the app here

~ database_mine.db ~

  • A sqlite database
  • Saved passwords and usernames safely

Login and signup database (database_mine.db)

id username password
1 John hashed password (sha256)
2 Beckham hashed password (sha256)
3 Ann hashed password (sha256)

Ngrok - configuration

  • Ngrok is a bit buggy on client_v1-0.py

  • It works only on client_v1-1.py

Config ngrok

  • Install ngrok

  • Go to the extracted ngrok directory and save your auth token.

  • Run ./ngrok tcp 9999 in the terminal.

  • Run python3 client.py

  • Type the new ip and port from ngrok tcp connection to the client.py.

client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.connect(("0.tcp.in.ngrok.io", 11441))

Contact us

Authors

Thank you!

About

networking :- chatting, creating servers, databases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages