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

327
Visualizações
How to make API server always online?

I am doing a COVID-19 dashboard for my university assignment and recently my country decided to open COVID data to the public. I am fortunate to come across a NodeJS self-hosted RESTful API server endpoint that provides the API for use. Here's the link to this amazing guy's work: https://github.com/leeliwei930/moh-my-covid-express-api

I followed the instructions on how to setup the server locally and it works. However, I have no idea how to use it in my assignment project. I have experience in using APIs in my previous projects where I just need to include the link to use it. I don't think it works the same in this case since I would have to open the folder containing the files of this API server and manually type in some commands in the terminal each time I want to host the API server locally.

So is there any way to make the API server always online so that I can use it in my COVID project? I have no knowledge in Node.js and just started learning JS but am willing to learn it my project requires me to do so.

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

First : use pm2 for service handler of you express application bind it locally then put nginx or apache2 in top of your code and config your express application as upstream server in nginx or apache2 if you want to be your service always online , run your express code on two different server and config upstream server in nginx and apache2 as two server to redirect request to both of your express service or use master slave strategy to route request to one of your express when service failed route to another express service

about 4 years ago · Juan Pablo Isaza Relatório

0

If you dockerize the node application (Docker container) it will always be online and restart always without the need for PM2 or other process manager on the Linux level. All you need to have in your docker-compose file is restart: always. Highly recommended solution.

about 4 years ago · Juan Pablo Isaza 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