Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

157
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda