This tutorial is a step-by-step instruction how to get from having a Node++ application on your laptop to having it online 24/7, via domain name and HTTPS.
It's specifically intended for small to middle-sized startups. The typical usage would involve up to several millions requests per day, up to 100k registered users and up to 10 sessions per CPU core. Obviously all these numbers are affected by an application profile. It may for example use some external API extensively, which would require more than 10 sessions per CPU, and so on.
If above limits are acceptable, Node++ allows you to easily fit in $50 per year, that including both hosting and a domain fee.
Node++ shows its best on Linux. You can take advantage of:
- cheap hosting – 1 GB memory is enough for an operating system, Node++ application and MySQL database server,
- POSIX queues – They are a fantastic load balancing and multi-process synchronization tool, used by Node++'s ASYNC,
- epoll – although not a deal breaker but as a very efficient connections' polling facility, it improves performance with large number of open connections.
That's why this is recommended setup and it's fully covered by this tutorial.
If you don't know where to start and just want to make your application publicly available, go through all the steps as they are.
You may not need database and USERS.
If you already have some of the resources described in this tutorial, you can cherry-pick. For example, you may already have a Linux server that is online 24/7 and you want to use it – you can skip Part 1 and start from Part 2. The same with a domain name, etc.
Part 1 – Server in the cloud – renting a Linux server in the cloud. | |
Part 2 – Node++ app on the server – installing a Node++ application on a Linux server. | |
Part 3 – Domain – buying a domain name and DNS setup. | |
Part 4 – HTTPS – obtaining a free SSL certificate and Node++ setup for HTTPS. | |
Part 5 – Database and USERS – creating users database and Node++ USERS module configuration. | |
Part 6 – Advanced anti-bot protection – anti-bot and ani-spam protection without annoying captchas. |
Next part: Putting your web application online – Part 1 – Server in the cloud
Is something wrong here? Please, let us know!