How to Install Cezerin on Debian 9

In this tutorial, we will show you how to install Cezerin on a Debian 9 VPS.

Cezerin is an eCommerce platform powered by React, NodeJS, and MongoDB. It is an open-source platform that enables us to create progressive web apps for eCommerce. With Cezerin, your eCommerce website will load very fast because it is a single page application that only fetches JSON, and not HTML. Let’s begin with the installation.

Then, run the following command to make sure that all installed packages on the server are updated to their latest available versions:

# apt update && apt upgrade

This helps ensure that no mismatched versions or errors can occur. With that out of the way, we can start installing the packages that we’ll need.

Step 2: Install NodeJS

We need to install the latest stable version of Node.js and the npm package manager onto our server. To do that, we have to install the NodeSource Node.js repository first, as it is not a pre-installed software repository.

To check the Node.js version you have just installed after these initial steps, type:

# node -v

You should see an output similar to this.

v10.16.1

Step 3: Install MongoDB Server

Debian 9 official software package repositories come with version 3.2.11 of MongoDB, but in this article, we will install MongoDB 4.0 which is the latest available version. However, you can always check if a new version of MongoDB is available on their official website.

In order to install the MongoDB 4.0 Community Edition on Debian 9, we need to import the public key used by the package management system. We can do that with the command:

You can use Ctrl + C to stop the service, now let’s proceed to the next step.

Step 5: Create a systemd file

To manage the Cezerin service easier, we can create a systemd file. This is optional, but it does make using Cezerin a lot easier as it allows it to run in the background instead of in the terminal session. Open a new file using your preferred text editor:

Every time you create or edit a systemd file, you need to refresh the configuration by issuing this command:

# systemctl daemon-reload

Now let’s enable it to start automatically on boot as well as manually start the service now.

# systemctl enable cezerin
# systemctl start cezerin

At this point, you can access Cezerin at http://IP_Address:3000

Step 6: Install and Configure Nginx as a Reverse Proxy

Cezerin has been successfully configured. However, if you want to access the application using your domain name instead of an IP address, as well as not require the port number, we need to install and configure a web server. For this tutorial, we will install and configure Nginx to proxy pass to Cezerin. Let’s start by installing Nginx:

Save and exit once finished. Next, check if there are errors using the first command. If there are none, you can then start Nginx. We also recommend enabling Nginx to start on boot as well:

# nginx -t
# systemctl restart nginx
# systemctl enable nginx

That’s it! Now you can access your Cezerin installation from http://yourdomain.com.

Of course, you don’t have to know how to install Cezerin on Debian 9 if you have a Debian VPS Hosting plan with us. Because our servers are fully managed, you can simply ask our support team to install Cezerin on Debian 9 for you. They are available 24/7, and will be able to help you with the installation of Cezerin on Debian.

PS. If you enjoyed reading this blog post on how to install Cezerin on Debian 9, feel free to share it on social networks using the shortcuts below, or simply leave a comment in the comments section. Thanks.