0

I've built an application that runs with node.js, which permits retrieval of data through a REST API.

I want to publish it online on free web hosting like 000webhost.com/ , but I dont know what to do to make my web Service available online.

Can someone explain me the steps to do it?

grizzthedj
  • 7,131
  • 16
  • 42
  • 62
XYZW
  • 31
  • 1
  • 4

2 Answers2

3

First you need to understand the difference between a http server and a runtime container. You can learn from this post Difference between the Apache HTTP Server and Apache Tomcat?

Most of the free website hosts are just http server. But some of them supports build-in PHP runtime like Wordpress. Not many of them provides build-in node runtime.

If you wanna to deploy your Node.js server in one click. You can try some PaaS solution like

If you want more freedom, you can setup a instance from IaaS like AWS. Here is the AWS Quickstart Node.js. This needs a basic knowledge about Linux.

You need to startup a node runtime in your server for product usage. You better choose a production runtime like PM2

yue you
  • 2,206
  • 1
  • 12
  • 29
2

The free hosting on those websites is mostly for PHP apps. For Node.js, you should go with -

  1. Heroku

  2. AWS

You can host your application for free here. On AWS you have to add your card details to use it for free for one month.

Rahul
  • 863
  • 6
  • 23