Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

158
Views
NodeJS from localhost to online site

I have a site that I created using NodeJS and one page html/jquery everything is working as expected on the localhost provided but I'm getting some issue in putting that site online www.xxxx.com, I already got a .com domain but I don't know which configuration should I do on my site and on code , which mean is there steps to follow on the app.js which contain the localhost:3500 ?

This is the structure of my folder developped under VSCODE

the structure of my folder

and this is my statement app.js of the localhost

//start the server.
app.listen(3500, function () {
 console.log('Example app listening on port 3500!');
});

Hope I mentioned everything Best Regards

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

To host a website, you not only need the domain name (.com), but you also need the server and hosting.

Here you can find details:

  • Setting up Nginx server blocks (virtual hosts) on Ubuntu using NGINX (free and open source)

    https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04

  • For windows:

    https://www.rapidvaluesolutions.com/tech_blog/nginx-server-deploying-web-applications/

over 4 years ago · Santiago Trujillo Report

0

If you're like me who doesn't want to get into the configuration details of the host server, check out heroku. It's a platform-as-a-service that allows you to host a site really easily and it has a pretty generous free-tier. Not much will have to change code-wise maybe just making the port a variable.

One major issue I had with the platform is that you cannot save files on the filesystem using code, you'll have to use an external file storage like AWS.

The other, slightly minor issue is that you need to be using git to push your code to the heroku servers (Not really an issue tbh since you really should look into git if you aren't using it already)

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!