This project is a simple Express.js application that serves a static HTML file and provides a JSON endpoint /info to retrieve the local IP address and server port information.
index.html) is served with interactive content./infofetch to retrieve server data dynamically.The following technologies are used in this project:
Follow these steps to install and run the project:
Make sure Node.js and npm are installed on your system:
node --version
npm --version
Copy the repository
git clone https://github.com/nava2105/js_mqtt.git
Enter the directory
cd ../web_distribuida
Install the dependencies
npm install
Run the server
node app.js
Run testing
nmp test
Activate the pre-commit Git hook: Copy the pre-commit hook to the Git hooks directory:
copy pre-commit .git\hooks
Open a browser and enter to
Server: http://localhost:3000
Pull the image from Docker-hub
docker pull na4va4/js_mqtt
Start a container from the image
docker run -p 3000:3000 na4va4/web_distribuida
Open a browser and enter to Server: http://localhost:3000
Content type
Image
Digest
sha256:4b5616a08…
Size
357.1 MB
Last updated
almost 2 years ago
docker pull na4va4/web_distribuida