Basic Socket.IO application integrated with an Express.js server.
347
This project is a basic Socket.IO application integrated with an Express.js server. It sets up a WebSocket server and client communication to demonstrate real-time messaging between a server and a browser.
Server Functionalities:
"Hello from the Socket.IO server".Client Functionalities:
A list of technologies used within the project:
Follow these steps to install and run the project:
Ensure you have Node.js installed on your machine:
node --version
npm --version
Copy the repository
git clone https://github.com/nava2105/js_socketio.git
Enter the directory
cd ../js_socketio
Install the dependencies
npm install
Run the server
node app.js
Open a browser and enter to Server: http://localhost:8000
Open a browser and enter to Message: http://localhost:8000/api/message
Or to review the endpoints in Swagger enter to http://localhost:8000/api-docs
Pull the image from Docker-hub
docker pull na4va4/js_socketio
Start a container from the image
docker run -p 8000:8000 na4va4/js_socketio
Open a browser and enter to Server: http://localhost:8000
Open a browser and enter to Message: http://localhost:8000/api/message
Or to review the endpoints in Swagger enter to http://localhost:8000/api-docs
Content type
Image
Digest
sha256:5634a7195…
Size
392.4 MB
Last updated
almost 2 years ago
docker pull na4va4/js_socketio