https://github.com/444b/viceversa
https://github.com/444b/viceversa
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/444b/viceversa
- Owner: 444B
- Created: 2024-09-27T14:43:25.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-09-30T10:04:30.000Z (8 months ago)
- Last Synced: 2025-03-07T15:45:38.356Z (3 months ago)
- Language: Python
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vice Versa (Client-Server Model Exploration)
This project demonstrates a simple client-server model using Python.## Components
- `server.py`: A server that listens on port 8080, receives UUID and timestamp data from clients, stores it in an SQLite3 database, and prints the data to the console.
- `client.py`: A client that sends a UUID and timestamp to the server every 2 seconds.## Setup Instructions
1. Server Setup:
Ensure Python 3 is installed.Run the server script:
```bash
chmod +x server.py; python3 server.py
```
---
2. Client Setup:
Install the requests library:
```bash
pip install requests
```
Update the SERVER_URL in client.py with your server's IP address (e.g., 'http://127.0.0.1:8080/').Run the client script:
```bash
chmod +x client.py; python3 client.py
```