<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Node.js Archives - LinuxTuto</title>
	<atom:link href="https://www.linuxtuto.com/tag/node-js/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.linuxtuto.com/tag/node-js/</link>
	<description>Linux Sysadmin and DevOps blog</description>
	<lastBuildDate>Mon, 07 Apr 2025 18:00:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://www.linuxtuto.com/wp-content/uploads/2022/01/cropped-LT_faveicon-32x32.png</url>
	<title>Node.js Archives - LinuxTuto</title>
	<link>https://www.linuxtuto.com/tag/node-js/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">201456972</site>	<item>
		<title>How to Install Node.js on Ubuntu 24.04</title>
		<link>https://www.linuxtuto.com/how-to-install-node-js-on-ubuntu-24-04/</link>
					<comments>https://www.linuxtuto.com/how-to-install-node-js-on-ubuntu-24-04/#respond</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Mon, 07 Apr 2025 18:00:22 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Node.js]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1864</guid>

					<description><![CDATA[<p>Node.js is a fast, open-source JavaScript runtime that lets you build scalable server-side and network applications. It is known for its non-blocking, event-driven architecture, making...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-node-js-on-ubuntu-24-04/">How to Install Node.js on Ubuntu 24.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Node.js is a fast, open-source JavaScript runtime that lets you build scalable server-side and network applications.</p>
<p>It is known for its non-blocking, event-driven architecture, making it ideal for building scalable network applications like APIs, chat apps, and real-time services.</p>
<p data-pm-slice="1 1 []">Ubuntu 24.04 offers several ways to install <code>Node.js</code> depending on your needs, whether you prefer stability or the latest features.</p>
<p data-pm-slice="1 1 []">This blog post will guide you through three reliable methods to install Node.js on Ubuntu 24.04.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Method 1: Installing Node.js Using apt (Default Repository)</span></h2>
<p>Ubuntu provides <a href="https://www.linuxtuto.com/how-to-install-angularjs-on-ubuntu-22-04/">Node.js</a> in its default repositories, but it may not be the latest version.</p>
<p>First, update the package list to ensure you have the latest repositories:</p>
<pre><code># apt update &amp;&amp; sudo apt upgrade -y</code></pre>
<p>Run the following command to install <code>Node.js</code> and npm:</p>
<pre><code># apt install nodejs npm -y</code></pre>
<p>Verify the installed version of <code>Node.js</code> running the following command:</p>
<pre><code># node --version</code></pre>
<p>You should see the following output:</p>
<pre><code>v18.19.1</code></pre>
<p>Verify the NPM version with the following command:</p>
<pre><code># npm --version</code></pre>
<p>You should get the following output:</p>
<pre><code>9.2.0</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Method 2: Install Latest Node.js Using NodeSource</span></h2>
<p>This method gives you access to the most recent versions of <a href="https://www.linuxtuto.com/how-to-install-vue-js-on-ubuntu-22-04/">Node.js</a>.</p>
<p>First, add the <code>Node.js</code> repository running the following command:</p>
<pre><code># curl -sL https://deb.nodesource.com/setup_22.x | bash -</code></pre>
<p>Once added, install the <code>Node.js</code> with the following command:</p>
<pre><code># apt-get install nodejs</code></pre>
<p>Verify the installed version of <code>Node.js</code> running the following command:</p>
<pre><code># node --version</code></pre>
<p>You should see the following output:</p>
<pre><code>v22.14.0</code></pre>
<p>Verify the NPM version with the following command:</p>
<pre><code># npm --version</code></pre>
<p>You should get the following output:</p>
<pre><code>10.9.2</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Method 3: Install Node.js Using NVM (Node Version Manager)</span></h2>
<p>Use this method if you want to install and manage multiple <code>Node.js</code> versions easily.</p>
<pre><code># curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
# source ~/.bashrc</code></pre>
<p>To install the latest LTS version:</p>
<pre><code># nvm install --lts</code></pre>
<p>To install a specific version you can use the following command:</p>
<pre><code># nvm install 20</code></pre>
<p>Replace &#8220;<strong>20&#8243;</strong> with the version number of <a href="https://www.linuxtuto.com/how-to-install-reactjs-on-ubuntu-22-04/">Node.js</a> you want to install.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>Installing <code>Node.js</code> on Ubuntu 24.04 is straightforward with multiple flexible options:</p>
<ul data-spread="false">
<li>Use <strong>apt</strong> for a quick setup</li>
<li>Use <strong>NodeSource</strong> for the latest stable versions</li>
<li>Use <strong>NVM</strong> for full control over <code>Node.js</code> versions</li>
</ul>
<p>Now that <code>Node.js</code> is installed, you&#8217;re ready to start building apps and tools in JavaScript.</p>
<p>For additional help or useful information, we recommend you to check  <a href="https://nodejs.org/docs/latest/api/" target="_blank" rel="noopener">the official Node.js documentation.</a></p>
<p>If you have any questions please leave a comment below.</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-node-js-on-ubuntu-24-04/">How to Install Node.js on Ubuntu 24.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-node-js-on-ubuntu-24-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1864</post-id>	</item>
		<item>
		<title>How to Install Odoo 18 on Ubuntu 24.04</title>
		<link>https://www.linuxtuto.com/how-to-install-odoo-18-on-ubuntu-24-04/</link>
					<comments>https://www.linuxtuto.com/how-to-install-odoo-18-on-ubuntu-24-04/#respond</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Thu, 03 Oct 2024 12:00:03 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Node.js]]></category>
		<category><![CDATA[Odoo]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1808</guid>

					<description><![CDATA[<p>Odoo 18 is an open-source suite of business applications that provides a complete ERP (Enterprise Resource Planning) solution for organizations of various sizes. It offers...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-odoo-18-on-ubuntu-24-04/">How to Install Odoo 18 on Ubuntu 24.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Odoo 18 is an open-source suite of business applications that provides a complete ERP (Enterprise Resource Planning) solution for organizations of various sizes. It offers a wide range of integrated tools and modules to help manage all aspects of a business, such as finance, sales, inventory, human resources, and more.</p>
<p>The open-source community edition is free, making it accessible to small businesses and developers. The enterprise edition, on the other hand, offers additional features, services, and support.</p>
<p>Odoo is highly customizable. Businesses can tailor modules to meet their specific needs, create custom workflows, or build entirely new apps using Odoo’s development framework.</p>
<p>In summary, Odoo is a versatile business management software that can streamline operations and provide real-time insights, making it an ideal solution for companies looking to optimize their business processes.</p>
<p>In this tutorial, we will show you how to install Odoo 18 on a Ubuntu 24.04 OS.</p>
<h2><span class="has-inline-color has-vivid-purple-color">S</span><span class="has-inline-color has-vivid-purple-color">tep 1: Update Operating System</span></h2>
<p>Update your <strong>Ubuntu 24.04</strong> operating system to make sure all existing packages are up to date:</p>
<pre><code># apt update &amp;&amp; apt upgrade</code></pre>
<p>Then install all the required packages for the Odoo 18 setup on the Ubuntu 24.04 OS.</p>
<pre><code># apt install python3-minimal python3-dev python3-pip python3-venv python3-setuptools build-essential libzip-dev libxslt1-dev libldap2-dev python3-wheel libsasl2-dev node-less libjpeg-dev xfonts-utils libpq-dev libffi-dev fontconfig git wget</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: </span><span class="has-inline-color has-vivid-purple-color">Install PostgreSQL </span></h2>
<p>Odoo uses PostgreSQL as a database backend, so you will need to install PostgreSQL on your server.</p>
<p>Follow these steps to install and configure PostgreSQL server:</p>
<pre><code># apt-get install postgresql</code></pre>
<p>After the successful installation, start the PostgreSQL service and enable it to start after the system reboot:</p>
<pre><code># systemctl start postgresql
# systemctl enable postgresql</code></pre>
<p>Verify that is active and running on your server:</p>
<pre><code># systemctl status postgresql</code></pre>
<pre><strong>Output</strong>
<code>● postgresql.service - PostgreSQL RDBMS
     Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled; preset: enabled)
     Active: active (exited)
   Main PID: 19754 (code=exited, status=0/SUCCESS)
        CPU: 2ms</code></pre>
<p>Now create an Odoo user in PostgreSQL:</p>
<pre><code># su - postgres -c "createuser -s odoo" </code></pre>
<p>This will add a new role <strong>odoo</strong> in the PostgreSQL server.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: Install Node.js</span></h2>
<p>To install Node.js and npm on your Ubuntu 24.04 OS use the following command:</p>
<pre><code># apt install nodejs npm</code></pre>
<p>Also, install the following module to enable RTL support:</p>
<pre><code># npm install -g rtlcss</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Installation of wkhtmltopdf</span></h2>
<p>To generate PDF reports successfully, wkhtmltopdf is necessary. PDF reports are a crucial component of any organization.</p>
<p>First install the xfonts dependency before installing wkhtmltopdf:</p>
<pre><code># apt-get install xfonts-75dpi xfonts-base</code></pre>
<p>Now download and install <a href="https://wkhtmltopdf.org/downloads.html">wkhtmltopdf</a> using the following commands:</p>
<pre><code># wget  http://security.ubuntu.com/ubuntu/pool/universe/w/wkhtmltopdf/wkhtmltopdf_0.12.6-2build2_amd64.deb
# dpkg -i wkhtmltopdf_0.12.6-2build2_amd64.deb</code></pre>
<p>Verify if the wkhtmltopdf installation is successful by checking the version:</p>
<pre><code># wkhtmltopdf --version
wkhtmltopdf 0.12.6</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Create an Odoo User</span></h2>
<p>Create a new system user for managing the Odoo processes on the Odoo server.</p>
<pre><code># adduser --system --group --home=/opt/odoo --shell=/bin/bash odoo</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Install Odoo 18</span></h2>
<p>Switch to the user that you have created before to avoid encountering issues related to access rights.</p>
<pre><code># su - odoo</code></pre>
<p>Now, download the Odoo 17 source code from the git repository and install it:</p>
<pre><code># git clone https://www.github.com/odoo/odoo --depth 1 --branch 18.0 /opt/odoo/odoo</code></pre>
<p>Next run the following command to generate a new Python virtual environment.</p>
<pre><code># python3 -m venv odoo-env</code></pre>
<p>Activate the virtual environment with the following command:</p>
<pre><code># source odoo-env/bin/activate</code></pre>
<p>Then install the required Python packages:</p>
<pre><code>(odoo-env) $ pip3 install wheel
(odoo-env) $ pip3 install -r odoo/requirements.txt</code></pre>
<p>After completing the process of installing all requirements to deactivate the virtual environment run the following command:</p>
<pre><code>(odoo-env) $ deactivate</code></pre>
<p>Execute the following command to create a directory for custom addons:</p>
<pre><code># mkdir /opt/odoo/custom-addons</code></pre>
<p>Next exit from the Odoo user:</p>
<pre><code># exit</code></pre>
<p>Create an <code>Odoo</code> log directory and provide it the required write permissions.</p>
<pre><code># mkdir /var/log/odoo18
# chown odoo:odoo /var/log/odoo18</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Create Odoo Configuration File</span></h2>
<p>Create the <code>Odoo</code> configuration file.</p>
<pre><code># nano /etc/odoo.conf</code></pre>
<p>Then paste the following configuration into it.</p>
<pre><code>[options]
admin_passwd = Strong_admin_Password
db_host = False
db_port = False
db_user = odoo
db_password = False
logfile = /var/log/odoo18/odoo-server.log
addons_path = /opt/odoo/odoo/addons,/opt/odoo/custom-addons
xmlrpc_port = 8069</code></pre>
<p>Remember to update the value of the &#8220;<strong><code>Strong_admin_Password</code></strong>&#8221; key above with a more secure password.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 8: Create a Systemd Service File</span></h2>
<p>Create a systemd service file to manage the <code>Odoo</code> service:</p>
<pre><code># nano /etc/systemd/system/odoo.service</code></pre>
<p>Paste the following content into the <code>odoo.service</code> file:</p>
<pre><code>[Unit]
Description=Odoo
Requires=postgresql.service
After=network.target postgresql.service

[Service]
Type=simple
SyslogIdentifier=odoo
PermissionsStartOnly=true
User=odoo
Group=odoo
ExecStart=/opt/odoo/odoo-env/bin/python3 /opt/odoo/odoo/odoo-bin -c /etc/odoo.conf
StandardOutput=journal+console

[Install]
WantedBy=multi-user.target</code></pre>
<p>Reload system daemon and start the service:</p>
<pre><code># systemctl daemon-reload
# systemctl start odoo
# systemctl enable odoo</code></pre>
<p>To confirm everything is working normally, check the status of service:</p>
<pre><code># systemctl status odoo</code></pre>
<p>Output:</p>
<pre><code>● odoo.service - Odoo
     Loaded: loaded (/etc/systemd/system/odoo.service; enabled; preset: enabled)
     Active: active (running)
   Main PID: 21764 (python3)
      Tasks: 4 (limit: 2218)
     Memory: 73.3M (peak: 73.5M)
        CPU: 973ms
     CGroup: /system.slice/odoo.service
             └─21764 /opt/odoo/odoo-env/bin/python3 /opt/odoo/odoo/odoo-bin -c /etc/odoo.conf
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 9: Access Odoo 18 server</span></h2>
<p>Open your web browser and type <strong>http://your-IP-address:8069</strong> and you will see the following screen:</p>
<p><img fetchpriority="high" decoding="async" class="aligncenter size-large wp-image-1811" src="https://www.linuxtuto.com/wp-content/uploads/2024/10/odoo18-900x393.webp" alt="Odoo 18" width="900" height="393" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/10/odoo18-900x393.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/10/odoo18-300x131.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/10/odoo18-768x335.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/10/odoo18-1536x670.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/10/odoo18-1222x533.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/10/odoo18-897x392.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/10/odoo18-684x299.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/10/odoo18.webp 1913w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>That’s it. You have successfully installed Community version of Odoo 18 on Ubuntu 24.04.</p>
<p>For additional help or useful information, we recommend you to check  <a href="https://www.odoo.com/documentation/18.0/" target="_blank" rel="noopener">the official Odoo 18 documentation.</a></p>
<p>If you have any questions please leave a comment below.</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-odoo-18-on-ubuntu-24-04/">How to Install Odoo 18 on Ubuntu 24.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-odoo-18-on-ubuntu-24-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1808</post-id>	</item>
		<item>
		<title>How to Install Strapi with Nginx on Debian 12</title>
		<link>https://www.linuxtuto.com/how-to-install-strapi-with-nginx-on-debian-12/</link>
					<comments>https://www.linuxtuto.com/how-to-install-strapi-with-nginx-on-debian-12/#comments</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Tue, 08 Aug 2023 12:00:03 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Node.js]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Strapi]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1499</guid>

					<description><![CDATA[<p>Strapi is a most advanced open source content management system (CMS) designed to help developers to build powerful API. Strapi follows a &#8220;headless&#8221; architecture, which...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-strapi-with-nginx-on-debian-12/">How to Install Strapi with Nginx on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Strapi is a most advanced open source content management system (CMS) designed to help developers to build powerful API.</p>
<p>Strapi follows a &#8220;headless&#8221; architecture, which means it separates the content management backend from the frontend presentation, giving developers the freedom to use various technologies and frameworks on the frontend.</p>
<p>In this tutorial, we will show you how to install <code>Strapi</code> on Debian 12 OS.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>Update your <strong>Debian 12</strong> operating system to make sure all existing packages are up to date:</p>
<pre><code># apt update &amp;&amp; apt upgrade</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Nginx webserver</span></h2>
<p>You can install Nginx via <code>apt</code> package manager by executing the following command.</p>
<pre><code># apt install nginx</code></pre>
<p>You can start the Nginx service and configure it to run on startup by entering the following commands:</p>
<pre><code># systemctl start nginx
# systemctl enable nginx</code></pre>
<p>Verify the status of the Nginx service using <strong>systemctl status</strong> command:</p>
<pre><code># systemctl status nginx</code></pre>
<p>Output:</p>
<pre><code>● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; preset: enabled)
     Active: active (running)
       Docs: man:nginx(8)
    Process: 627 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
    Process: 646 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
   Main PID: 655 (nginx)
      Tasks: 2 (limit: 2273)
     Memory: 3.8M
        CPU: 27ms
     CGroup: /system.slice/nginx.service
             ├─655 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on;"
             └─656 "nginx: worker process"</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: Install Node.js</span></h2>
<p>Strapi is based on Node.js, for that reason, you need to have Node.js installed on your server.</p>
<p>To install Node.js and npm on your Debian OS use the following command:</p>
<pre><code># apt install nodejs npm</code></pre>
<p>You can verify the Node.js version with the following command:</p>
<pre><code># node --version</code></pre>
<p>You should see the following output:</p>
<pre><code>v18.13.0</code></pre>
<p>Also, verify the <strong>npm</strong> version with the following command:</p>
<pre><code># npm --version</code></pre>
<p>You should get the following output:</p>
<pre><code>9.2.0</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Install PostgreSQL </span></h2>
<p>Strapi uses PostgreSQL as a database backend, so you will need to<a href="https://www.linuxtuto.com/how-to-install-postgresql-15-on-debian-11/"> install PostgreSQL on your server</a>.</p>
<p>You can run the following command to install the PostgreSQL server:</p>
<pre><code># apt-get install postgresql-15</code></pre>
<p>After the successful installation, start the PostgreSQL service and enable it to start after the system reboot:</p>
<pre><code># systemctl start postgresql
# systemctl enable postgresql</code></pre>
<p>Verify that is active and running on your server:</p>
<pre><code># systemctl status postgresql</code></pre>
<pre><strong>Output</strong>
<code>● postgresql.service - PostgreSQL RDBMS
     Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; preset: enabled)
     Active: active (exited)
   Main PID: 13153 (code=exited, status=0/SUCCESS)
        CPU: 1ms
</code></pre>
<p>Next, connect to the PostgreSQL shell:</p>
<pre><code># su postgres
# psql</code></pre>
<p>Then, we create the Strapi database:</p>
<pre><code>postgres=# CREATE DATABASE strapidb; 
postgres=# CREATE USER strapi WITH PASSWORD 'Your-Strong-Password'; 
postgres=# GRANT ALL PRIVILEGES ON DATABASE strapidb to strapi; 
postgres=# \q</code></pre>
<p>Return to your <code>root</code> user account.</p>
<pre><code># exit</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Create a Strapi Application</span></h2>
<p>Once PostgreSQL and Node.js have been installed, we can proceed to install Strapi.</p>
<p>You can use the <strong>npx</strong> command line utility to easily create a Strapi app.</p>
<pre><code># cd /opt
# npx create-strapi-app@latest strapi --no-run</code></pre>
<p>You will see the following output.</p>
<pre><code>Need to install the following packages:
  create-strapi-app@4.12.1
Ok to proceed? (y) <strong>y</strong></code></pre>
<p>Proceed with the creation by pressing <strong>y</strong>.</p>
<p>In the interactive shell, select <strong>custom</strong> installation then your database client, database name and user name as provisioned.</p>
<pre><code>? Choose your installation type Custom (manual settings)
? Choose your preferred language JavaScript
? Choose your default database client postgres
? Database name: strapidb
? Host: 127.0.0.1
? Port: 5432
? Username: strapi
? Password: ********************
? Enable SSL connection: No</code></pre>
<p>Next, navigate to the <strong>strapi</strong> directory and build the application with the following command.</p>
<pre><code># cd strapi
# npm run build</code></pre>
<p>Output:</p>
<pre><code>&gt; strapi@0.1.0 build
&gt; strapi build

Building your admin UI with development configuration...

✔ Webpack
  Compiled successfully in 1.12m

Admin UI built successfully
</code></pre>
<p>Then run Strapi in development mode.</p>
<pre><code># npm run develop</code></pre>
<p>If everything is fine, you will get the following output.</p>
<p><img decoding="async" class="aligncenter size-full wp-image-1503" src="https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_project_information.webp" alt="Strapi Project Information" width="900" height="427" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_project_information.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_project_information-300x142.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_project_information-768x364.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_project_information-897x426.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_project_information-684x325.webp 684w" sizes="(max-width: 900px) 100vw, 900px" /><br />
Press the <strong>CTRL+C</strong> to stop the application.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Run Strapi with PM2</span></h2>
<p>In this step we will describe you to how to run Strapi app with PM2 command. PM2 is a Production Process Manager for Node.js applications.</p>
<p>First, install PM2 application by running the following command:</p>
<pre><code># npm install pm2@latest -g</code></pre>
<p>Now create a pm2 ecosystem file which is where you can setup some environment variables for each pm2 app you want to install and run.</p>
<pre><code># nano /root/ecosystem<span class="hljs-selector-class">.config</span><span class="hljs-selector-class">.js</span>
</code></pre>
<p>Paste the following content in the file.</p>
<pre><code>module.exports = {
  apps: [
    {
      name: <span class="hljs-string">'strapi'</span>,
      cwd: <span class="hljs-string">'/opt/strapi'</span>,
      script: <span class="hljs-string">'npm'</span>,
      args: <span class="hljs-string">'start'</span>,
      env: {
        NODE_ENV: <span class="hljs-string">'production'</span>,
        DATABASE_HOST: <span class="hljs-string">'localhost'</span>,
        DATABASE_PORT: <span class="hljs-string">'5432'</span>,
        DATABASE_NAME: <span class="hljs-string">'strapidb'</span>,
        DATABASE_USERNAME: <span class="hljs-string">'strapi'</span>,
        DATABASE_PASSWORD: <span class="hljs-string">'Your-Strong-Password'</span>
      },
    },
  ]
};
</code></pre>
<p><strong><span style="color: #ff0000;">Note:</span> /opt/strapi </strong>is the path to your project, you are required to replace this with your own path before you proceed.</p>
<p>Once modified, save the file then start the app in the background with the command:</p>
<pre><code># pm2 start /root/ecosystem.config.js</code></pre>
<p>You can see that the status of the app is set to <code>online</code>.</p>
<pre><code># pm2 list</code></pre>
<p><img decoding="async" class="aligncenter size-large wp-image-1506" src="https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_pm2_list-900x59.webp" alt="pm2 list" width="900" height="59" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_pm2_list-900x59.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_pm2_list-300x20.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_pm2_list-768x50.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_pm2_list-1536x100.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_pm2_list-1222x80.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_pm2_list-897x59.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_pm2_list-684x45.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_pm2_list.webp 1622w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>To allow the app to start automatically on boot, use the command:</p>
<pre><code># pm2 startup -u root</code></pre>
<p>Save the process:</p>
<pre><code># pm2 save</code></pre>
<p>Your <code>Strapi</code> service is now running in the background in production mode.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Configure Nginx for Strapi</span></h2>
<p>Create a new Nginx virtual host configuration file.</p>
<pre><code># nano /etc/nginx/conf.d/strapi.conf</code></pre>
<p>Add the following configurations:</p>
<pre><code>upstream strapi {
server 127.0.0.1:1337;
}

server {

listen 80;
server_name your-domain.com www.your-domain.com;

location / {
        proxy_pass http://strapi;
        proxy_http_version 1.1;
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Server $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header Host $http_host;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_pass_request_headers on;
      }
}</code></pre>
<p>Save and close the file, then edit the Nginx main configuration file.</p>
<pre><code># nano /etc/nginx/nginx.conf</code></pre>
<p>Add the following line after the line <code>http{:</code> but before the line <code>include /etc/nginx/conf.d/*.conf;</code>.</p>
<pre><code>server_names_hash_bucket_size 64;</code></pre>
<p>Save the file, then verify the Nginx configuration.</p>
<pre><code># /usr/sbin/nginx -t</code></pre>
<p>You should see the following output:</p>
<pre><code>nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful</code></pre>
<p>Restart the Nginx service to implement the changes.</p>
<pre><code># systemctl restart nginx</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 8: Access Strapi Web Interface</span></h2>
<p>Now, open your web browser and access the Strapi web UI using the URL <strong>http://your-domain.com/admin.</strong> You should see the <code>Strapi</code> default page:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1500" src="https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_welcome_page-900x513.webp" alt="Strapi Welcome Page" width="900" height="513" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_welcome_page-900x513.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_welcome_page-300x171.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_welcome_page-768x438.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_welcome_page-1536x876.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_welcome_page-1222x697.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_welcome_page-897x511.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_welcome_page-684x390.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_welcome_page.webp 1894w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Then click on the <strong>Let’s start</strong> button. You should see the <code>Strapi</code> dashboard:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1501" src="https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_dashboard-900x513.webp" alt="Strapi Dashboard" width="900" height="513" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_dashboard-900x513.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_dashboard-300x171.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_dashboard-768x438.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_dashboard-1536x876.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_dashboard-1222x697.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_dashboard-897x512.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_dashboard-684x390.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/08/strapi_dashboard.webp 1890w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>Congratulations. You have learned how to install Strapi on Debian 12 OS. You can now create your own application easily using Strapi.</p>
<p>For additional help or useful information, we recommend you to check  <a href="https://docs.strapi.io/" target="_blank" rel="noopener">the official Strapi documentation.</a></p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-strapi-with-nginx-on-debian-12/">How to Install Strapi with Nginx on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-strapi-with-nginx-on-debian-12/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1499</post-id>	</item>
		<item>
		<title>How to Install Vue.js on Ubuntu 22.04</title>
		<link>https://www.linuxtuto.com/how-to-install-vue-js-on-ubuntu-22-04/</link>
					<comments>https://www.linuxtuto.com/how-to-install-vue-js-on-ubuntu-22-04/#comments</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Mon, 20 Feb 2023 14:30:06 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Node.js]]></category>
		<category><![CDATA[Vue.js]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1153</guid>

					<description><![CDATA[<p>Vue.js is a popular open-source JavaScript framework used for building user interfaces and single-page applications. It was created by Evan You and was first released...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-vue-js-on-ubuntu-22-04/">How to Install Vue.js on Ubuntu 22.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Vue.js is a popular open-source JavaScript framework used for building user interfaces and single-page applications. It was created by Evan You and was first released in February 2014. Vue.js is a progressive framework, meaning it can be adopted incrementally as needed, allowing developers to start small and add more functionality as needed. Vue.js provides a reactive and composable system for building user interfaces, which makes it a popular choice for creating modern web applications.</p>
<p>In this tutorial, we will show you how to install Vue.js on Ubuntu 22.04 OS.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>Update your <strong>Ubuntu</strong> <strong>22.04</strong> operating system to make sure all existing packages are up to date:</p>
<pre><code># apt update &amp;&amp; sudo apt upgrade -y</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Node.js</span></h2>
<p>Vue.js is built on top of Node.js, so we need to install it first.</p>
<p>The Node.js version included in the default Ubuntu 22.04 repositories is <code>v12.22.9</code> which is an older LTS version.</p>
<p>We’ll install Node.js version <code>18.x</code> LTS on our Ubuntu OS.</p>
<pre><code># curl -sL https://deb.nodesource.com/setup_18.x | bash -</code></pre>
<p>After the repository is added successfully, run the following command to install Node.js:</p>
<pre><code># apt install nodejs</code></pre>
<p>You can verify the installation by running the following command:</p>
<pre><code># node --version</code></pre>
<p>You should see the version number of Node.js installed on your system:</p>
<pre><code>v18.14.1</code></pre>
<p>The next step is to update the npm version:</p>
<pre><code># npm install npm@latest -g</code></pre>
<p>Verify the <code>npm</code> version with the following command:</p>
<pre><code># npm --version</code></pre>
<p>You should get the following output:</p>
<pre><code>9.5.0</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: Install Vue CLI on Ubuntu 22.04</span></h2>
<p>Vue CLI is a command-line interface for building and scaffolding <code>Vue.js</code> projects.</p>
<p>Run the following command to install Vue CLI globally:</p>
<pre><code># npm install -g <span class="hljs-meta">@vue</span>/cli</code></pre>
<p>Verify the Vue CLI installation by running the following command:</p>
<pre><code># vue --version</code></pre>
<p>You should see the version number of Vue CLI installed on your system:</p>
<pre><code>@vue/cli 5.0.8</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Create Vue.js Application</span></h2>
<p>Now that we have installed Node.js and Vue CLI, we can create a Vue.js application.</p>
<p>You can create a Vue.js project run the following command:</p>
<pre><code># vue <span class="hljs-built_in">create</span> linuxtuto-project</code></pre>
<p>Sample Output:</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-1158 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2023/02/vue_cli.jpg" alt="Vue CLI" width="899" height="125" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/02/vue_cli.jpg 899w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vue_cli-300x42.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vue_cli-768x107.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vue_cli-897x125.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vue_cli-684x95.jpg 684w" sizes="auto, (max-width: 899px) 100vw, 899px" /></p>
<p>You can accept the default options or customize them as needed.</p>
<p>Next, change the directory to the <code>Vue.js</code> application:</p>
<pre><code># cd linuxtuto-project</code></pre>
<p>Once you are in the project folder you can start Vue.js application in development mode with the following command:</p>
<pre><code># npm run serve</code></pre>
<p><img loading="lazy" decoding="async" class="size-full wp-image-1160 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2023/02/vuejs_development.jpg" alt="Vue.js Development mode" width="900" height="151" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/02/vuejs_development.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vuejs_development-300x50.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vuejs_development-768x129.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vuejs_development-897x150.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vuejs_development-684x115.jpg 684w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>By default the <code>Vue.js</code>  application start on port <code>8080.</code></p>
<p>Open your favorite browser and enter the URL <code>http://your-IP-address:8080</code> to access your Vue.js application.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1162" src="https://www.linuxtuto.com/wp-content/uploads/2023/02/vue.js_app.jpg" alt="Vue.js Application" width="1893" height="911" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/02/vue.js_app.jpg 1893w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vue.js_app-300x144.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vue.js_app-900x433.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vue.js_app-768x370.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vue.js_app-1536x739.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vue.js_app-1222x588.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vue.js_app-897x432.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vue.js_app-684x329.jpg 684w" sizes="auto, (max-width: 1893px) 100vw, 1893px" /></p>
<p>You should see the default <code>Vue.js</code> welcome page.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Conclusion</span></h2>
<p>Congratulations. You have learned how to Install <code>Vue.js</code> and create a sample app on Ubuntu 22.04. Whether you&#8217;re a beginner or an experienced developer, <code>Vue.js</code> is a great choice for building web applications.</p>
<p>In order to get more information on this topic you can visiting the <a href="https://vuejs.org/">official website of Vue.js</a>.</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-vue-js-on-ubuntu-22-04/">How to Install Vue.js on Ubuntu 22.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-vue-js-on-ubuntu-22-04/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1153</post-id>	</item>
	</channel>
</rss>
