Node.js Application Setup on Web Hosting Service

Job ID: 38126299

Budget: €8 – €30 EUR

We are seeking an experienced freelancer to set up a Node.js application on our web hosting service, ensuring it runs correctly and is accessible via a custom domain.

Hosting Environment:

- Web hosting service: Febas.de
- Custom domain: www.ghv4-esp32.de
- Node.js Manager is accessible through the hosting control panel.

Task Requirements:

- Configure the hosting environment to run a Node.js application.
- Upload and set up a simple Node.js script that responds with a fixed message for any route.
- Ensure the application is running and accessible via the specified domain.
- Verify and configure the necessary firewall and port settings to allow traffic on the required port (default 3000).
- Provide documentation of the steps taken and any configurations made.

Specifics:

The script should listen on port 3000 and respond with a message "Fixed Response" for any request.

Sample Script:

const http = require('http');

const hostname = '0.0.0.0';
const port = 3000;

const server = http.createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Fixed Response\n');
});

server.listen(port, hostname, () => {
console.log(`Server running at http://${hostname}:${port}/`);
});
Related categories: JavaScript Node.js