https://github.com/legendarym4x/app_socket_udp
Simple Web App with UDP Socket Communication
https://github.com/legendarym4x/app_socket_udp
python threading websocket
Last synced: 2 days ago
JSON representation
Simple Web App with UDP Socket Communication
- Host: GitHub
- URL: https://github.com/legendarym4x/app_socket_udp
- Owner: legendarym4x
- Created: 2023-11-16T20:25:17.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-12T12:56:57.000Z (over 2 years ago)
- Last Synced: 2025-02-21T11:16:03.690Z (over 1 year ago)
- Topics: python, threading, websocket
- Language: HTML
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Simple Web App with UDP Socket Communication
### In this task assignment, we created a simple web application with routing for two html pages: index.html and message.html.
It was implemented:
Organized work with the form on the `message.html` page.
If a 404 Not Found error occurs, we return the `error.html` page.
Our program runs on port `3000`.
A `Socket server` has been created on port `5000`. We enter data into the form,
it enters your web application, which forwards it further for processing using
the socket (UDP protocol) of the Socket server. The Socket server translates
the received byte string into a dictionary and saves it in json file data.json
in the storage folder.
For our web application, we use one `main.py` file.
We start the `HTTP server` and the `Socket server` in different threads.
We also created a `Dockerfile` and run our application as a Docker container.