- August, 2020
Run node.js on your apache server (localhost or live server) with standard url e.g. http://mysite.com or https://mysite.com
Step 1: ensure that you have enabled mox_proxy and mod_proxy_http on your apache server LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so
If you are on debian, do:
sudo a2enmod proxy proxy_http
Create a hosts file like this on apache:
Restart your apache and launch
You need to run this on the commandline:
$ openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout holladocs.key -out holladocs.crt
The common name should be your virtual domain name. This post will be continued later.
Whilst I have done different types of socket implementations, I will walk us through a setup that has always work for me and has proven to be the best in cases that I have had to use SocketIO.
In this post, we will be implementing a basic SocketIO server, setup a small database for our users, have a client that consumes our application.
It will never be as boring as you think, I promise.
Docker is an app development tool that eases the process of creating, running, and deploying applications. It uses the concept of containers which work just like a Virtual Machine does.
While Docker runs more like a Virtual Machine does, it is more advantageous than a VM.
It let us define OS-like images like we are writing an actual OS that includes the only tools that we need, aside this, Docker utilizes the concept of layers which makes its images very much extensible. With this little feature, developers, sysadmins and devops engineers prefer it more. And since it has been in existence, Docker has witnessed widespread usages making it one of the defacto tool for software development, testing and delivery.
While there are many low level details about Docker which we won’t be doing in this post. In this post, we will focus on creating a docker compose file that could ease the development and deployment of NodeJS based web applications which require an nginx server which acts as a proxy server to a NodeJS application, MongoDB as the database and Redis as its dependencies.
Page 1 of 1, totaling 4 entries