<?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>Application Deployment Archives - ServerStadium</title>
	<atom:link href="https://serverstadium.com/knowledge-base/tag/application-deployment/feed/" rel="self" type="application/rss+xml" />
	<link>https://serverstadium.com/knowledge-base/tag/application-deployment/</link>
	<description>Public Cloud Solution by ServerStadium</description>
	<lastBuildDate>Thu, 04 Jan 2024 02:28:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>

<image>
	<url>https://serverstadium.com/wp-content/uploads/2023/04/cropped-favicon-1-32x32.png</url>
	<title>Application Deployment Archives - ServerStadium</title>
	<link>https://serverstadium.com/knowledge-base/tag/application-deployment/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Setting Up a Node.js Application Using Docker and Nginx on ServerStadium</title>
		<link>https://serverstadium.com/knowledge-base/setting-up-a-node-js-application-using-docker-and-nginx-on-serverstadium/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Thu, 04 Jan 2024 02:28:28 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=11762</guid>

					<description><![CDATA[<p>This tutorial guides you through creating a secure and scalable environment for a Node.js application using Docker and Nginx on ServerStadium&#8217;s infrastructure. Prerequisites A ServerStadium VM or dedicated server. Review the options at ServerStadium VM Pricing and Dedicated Servers. Basic knowledge of Docker, Nginx, and Node.js. Step 1: Prepare Your ServerStadium Environment Select and Set&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/setting-up-a-node-js-application-using-docker-and-nginx-on-serverstadium/">Setting Up a Node.js Application Using Docker and Nginx on ServerStadium</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This tutorial guides you through creating a secure and scalable environment for a Node.js application using Docker and Nginx on ServerStadium&#8217;s infrastructure.</p>
<h3>Prerequisites</h3>
<ul>
<li>A ServerStadium VM or dedicated server. Review the options at <a href="https://serverstadium.com/pricing/" target="_new" rel="noopener">ServerStadium VM Pricing</a> and <a href="https://serverstadium.com/dedicated-server/" target="_new" rel="noopener">Dedicated Servers</a>.</li>
<li>Basic knowledge of Docker, Nginx, and Node.js.</li>
</ul>
<h3>Step 1: Prepare Your ServerStadium Environment</h3>
<ol>
<li><strong>Select and Set Up Your Server</strong>: Choose a VM or dedicated server from ServerStadium. A medium-sized VM should suffice for most Node.js applications.</li>
<li><strong>Server Setup</strong>: Access your server via SSH. Update the system:<br />
<div class="shortcode-code">
<p>sudo apt update<br />
sudo apt upgrade</p></div></li>
</ol>
<h3>Step 2: Install Docker</h3>
<ol>
<li><strong>Install Docker</strong>: Install Docker on your ServerStadium environment:<br />
<div class="shortcode-code">
<p>sudo apt install docker.io</p></div></li>
<li><strong>Start and Enable Docker</strong>:<br />
<div class="shortcode-code">
<p>sudo systemctl start docker<br />
sudo systemctl enable docker</p></div></li>
<li><strong>Verify Installation</strong>:<br />
<div class="shortcode-code">
<p>docker &#8211;version</p></div></li>
</ol>
<h3>Step 3: Create Your Node.js Application</h3>
<ol>
<li><strong>Application Setup</strong>: On your local machine, create a basic Node.js application. For example, an Express.js application.</li>
<li><strong>Dockerize the Application</strong>: Create a <code>Dockerfile</code> in your application directory:
<div class="shortcode-code">
<p>FROM node:14</p>
<p>WORKDIR /usr/src/app</p>
<p>COPY package*.json ./</p>
<p>RUN npm install</p>
<p>COPY . .</p>
<p>EXPOSE 8080</p>
<p>CMD &#091; &quot;node&quot;, &quot;app.js&quot; &#093;</p>
<p></p></div></li>
<li><strong>Build Your Docker Image</strong>:<br />
<div class="shortcode-code">
<p>docker build -t mynodeapp .</p></div></li>
<li><strong>Run the Docker Container</strong>:<br />
<div class="shortcode-code">
<p>docker run -d -p 8080:8080 mynodeapp</p></div></li>
</ol>
<h3>Step 4: Install and Configure Nginx as a Reverse Proxy</h3>
<ol>
<li><strong>Install Nginx</strong>:<br />
<div class="shortcode-code">
<p>sudo apt install nginx</p></div></li>
<li><strong>Configure Nginx</strong>:
<p>Create a new site configuration file:<br />
<div class="shortcode-code">
<p>sudo nano /etc/nginx/sites-available/mynodeapp</p></div><br />
Add the following configuration:</p>
<div class="shortcode-code">
<p>server {<br />
listen 80;</p>
<p>server_name your_domain.com;</p>
<p>location / {<br />
proxy_pass http://localhost:8080;<br />
proxy_http_version 1.1;<br />
proxy_set_header Upgrade $http_upgrade;<br />
proxy_set_header Connection &#039;upgrade&#039;;<br />
proxy_set_header Host $host;<br />
proxy_cache_bypass $http_upgrade;<br />
}<br />
}</p>
<p></p></div><br />
Enable the new site:<br />
<div class="shortcode-code">
<p>sudo ln -s /etc/nginx/sites-available/mynodeapp /etc/nginx/sites-enabled/<br />
sudo nginx -t<br />
sudo systemctl restart nginx</p></div></li>
<li><strong>Firewall Configuration</strong>: If you have a firewall enabled, allow Nginx traffic:<br />
<div class="shortcode-code">
<p>sudo ufw allow &lt;span class=&quot;hljs-string&quot;&gt;&#039;Nginx Full&#039;&lt;/span&gt;</p></div></li>
</ol>
<h3>Step 5: Deploy Your Application</h3>
<ol>
<li><strong>Transfer Your Docker Image</strong>: Use <code>docker save</code> and <code>docker load</code> or a Docker registry to transfer your Docker image to your ServerStadium server.</li>
<li><strong>Run Your Docker Container</strong>: On the server, run your Docker container as before.</li>
</ol>
<h3>Step 6: Secure Your Application</h3>
<ol>
<li><strong>SSL Certificate</strong>: Obtain an SSL certificate for your domain (you can use Let&#8217;s Encrypt for a free certificate) and configure Nginx to use it.</li>
<li><strong>Environment Variables</strong>: Use environment variables for sensitive information like database passwords.</li>
</ol>
<h3>Conclusion</h3>
<p>You now have a scalable and secure Node.js application running in a Docker container, with Nginx as a reverse proxy on a ServerStadium server. This setup ensures efficient load handling and enhanced security for your application.</p>
<p>For additional assistance, visit our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">knowledge base</a> or contact our support team.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/setting-up-a-node-js-application-using-docker-and-nginx-on-serverstadium/">Setting Up a Node.js Application Using Docker and Nginx on ServerStadium</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Deploying a Containerized Application with Docker on ServerStadium</title>
		<link>https://serverstadium.com/knowledge-base/deploying-a-containerized-application-with-docker-on-serverstadium/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Thu, 04 Jan 2024 01:40:48 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=11754</guid>

					<description><![CDATA[<p>In this tutorial, we&#8217;ll guide you through the process of setting up Docker on a ServerStadium VM instance and deploying a containerized application. This approach is ideal for creating isolated, scalable, and efficient application environments. Prerequisites Ensure you have a ServerStadium account and a VM instance ready. If not, register and set up your VM&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/deploying-a-containerized-application-with-docker-on-serverstadium/">Deploying a Containerized Application with Docker on ServerStadium</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this tutorial, we&#8217;ll guide you through the process of setting up Docker on a ServerStadium VM instance and deploying a containerized application. This approach is ideal for creating isolated, scalable, and efficient application environments.</p>
<h3>Prerequisites</h3>
<p>Ensure you have a ServerStadium account and a VM instance ready. If not, <a href="https://cp.serverstadium.com/regist-user" target="_new" rel="noopener">register</a> and set up your VM instance via the <a href="https://cp.serverstadium.com/" target="_new" rel="noopener">Cloud Panel</a>.</p>
<h3>Step 1: Set Up Your ServerStadium VM Instance</h3>
<p>Log into the ServerStadium <a href="https://cp.serverstadium.com/" target="_new" rel="noopener">Cloud Panel</a> and create a new VM instance. Choose an operating system that is compatible with Docker, such as Ubuntu 20.04 or 22.04. You can find suitable VM configurations and pricing details on our <a href="https://serverstadium.com/pricing/" target="_new" rel="noopener">pricing page</a>.</p>
<h3>Step 2: Install Docker</h3>
<p>Once your VM instance is ready, connect to it via SSH. Update your package list and install Docker:</p>
<div class="shortcode-code">
<p>sudo apt update<br />
sudo apt install docker.io</p></div>
<p>Start and enable Docker:</p>
<div class="shortcode-code">
<p>sudo systemctl start docker<br />
sudo systemctl enable docker</p></div>
<p>Verify the installation:</p>
<div class="shortcode-code">
<p>docker &#8211;version</p></div>
<h3>Step 3: Working with Docker Containers</h3>
<p>Docker allows you to run applications in containers. For this tutorial, let&#8217;s run a simple &#8220;Hello World&#8221; container to demonstrate:</p>
<div class="shortcode-code">
<p>docker run hello-world</p></div>
<p>This command pulls the &#8220;Hello World&#8221; image from the Docker Hub and runs it in a container. You should see a message indicating that your Docker installation is working correctly.</p>
<h3>Step 4: Deploy Your Containerized Application</h3>
<p>Now, let&#8217;s deploy a more complex application. For example, you might want to run a Nginx web server. Pull the Nginx image from Docker Hub:</p>
<div class="shortcode-code">
<p>docker pull nginx</p></div>
<p>Run the Nginx container:</p>
<div class="shortcode-code">
<p>docker run -d -p 80:80 &#8211;name mynginx nginx</p></div>
<p>This command runs Nginx in a detached mode, maps port 80 on the container to port 80 on your VM, and gives the container a name.</p>
<p>You can now access your Nginx server by visiting your VM&#8217;s IP address in a web browser.</p>
<h3>Step 5: Managing Docker Containers</h3>
<p>Learn basic commands to manage your Docker containers:</p>
<ul>
<li>List running containers: <code>docker ps</code></li>
<li>Stop a container: <code>docker stop mynginx</code></li>
<li>Start a stopped container: <code>docker start mynginx</code></li>
<li>Remove a container: <code>docker rm mynginx</code></li>
</ul>
<h3>Conclusion</h3>
<p>You&#8217;ve successfully set up Docker on your ServerStadium VM and deployed a containerized application. Docker, combined with ServerStadium&#8217;s VM instances, offers a powerful platform for developing and deploying applications with ease and efficiency.</p>
<p>For further information and support, check our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">knowledge base</a> or contact our support team.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/deploying-a-containerized-application-with-docker-on-serverstadium/">Deploying a Containerized Application with Docker on ServerStadium</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Building Your First Application with the MEAN Stack on ServerStadium VM Instances</title>
		<link>https://serverstadium.com/knowledge-base/building-mean-stack-app-serverstadium-vm-instances/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Tue, 30 May 2023 21:16:55 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=11690</guid>

					<description><![CDATA[<p>Once you have the MEAN Stack set up on your ServerStadium VM instance, you can start building your first application. This guide will walk you through the process of creating a simple application. Before we dive in, make sure you&#8217;ve followed our previous guide on Setting up a MEAN Stack on ServerStadium VM Instances. Step&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/building-mean-stack-app-serverstadium-vm-instances/">Building Your First Application with the MEAN Stack on ServerStadium VM Instances</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Once you have the MEAN Stack set up on your ServerStadium VM instance, you can start building your first application. This guide will walk you through the process of creating a simple application.</p>
<p>Before we dive in, make sure you&#8217;ve followed our previous guide on <a href="https://serverstadium.com/knowledge-base/mean-stack-setup-serverstadium-vm-instances" target="_new" rel="noopener">Setting up a MEAN Stack on ServerStadium VM Instances</a>.</p>
<h2>Step 1: Create an Express.js Server</h2>
<p>Start by creating a new directory for your project and navigating into it:</p>
<pre><code class="!whitespace-pre hljs language-bash"><span class="hljs-built_in">mkdir</span> mean-app
<span class="hljs-built_in">cd</span> mean-app
</code></pre>
<p>Initialize a new Node.js application:</p>
<div class="bg-black rounded-md mb-4">
<pre class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">npm init -y
</code></pre>
</div>
<p>Install Express.js:</p>
<div class="bg-black rounded-md mb-4">
<pre class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">npm install express
</code></pre>
</div>
<p>Create a new file named <code>server.js</code>:</p>
<div class="bg-black rounded-md mb-4">
<pre class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash"><span class="hljs-built_in">touch</span> server.js
</code></pre>
</div>
<p>Open <code>server.js</code> in your text editor and add the following code to create a basic Express.js server:</p>
<div class="bg-black rounded-md mb-4">
<pre class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-javascript"><span class="hljs-keyword">const</span> express = <span class="hljs-built_in">require</span>(<span class="hljs-string">'express'</span>);
<span class="hljs-keyword">const</span> app = <span class="hljs-title function_">express</span>();
<span class="hljs-keyword">const</span> port = <span class="hljs-number">3000</span>;

app.<span class="hljs-title function_">get</span>(<span class="hljs-string">'/'</span>, <span class="hljs-function">(<span class="hljs-params">req, res</span>) =&gt;</span> {
  res.<span class="hljs-title function_">send</span>(<span class="hljs-string">'Hello World!'</span>);
});

app.<span class="hljs-title function_">listen</span>(port, <span class="hljs-function">() =&gt;</span> {
  <span class="hljs-variable language_">console</span>.<span class="hljs-title function_">log</span>(<span class="hljs-string">`Server is running at http://localhost:<span class="hljs-subst">${port}</span>`</span>);
});</code></pre>
<p>Run your server with <code>node server.js</code>. You should see &#8220;Server is running at http://localhost:3000&#8221; in your console. You can visit this URL in your browser to see your server in action.</p>
<h2>Step 2: Connect to MongoDB</h2>
<p>Install the MongoDB driver for Node.js:</p>
<div class="bg-black rounded-md mb-4">
<pre class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">npm install mongodb
</code></pre>
</div>
<p>Update <code>server.js</code> to connect to your MongoDB database:</p>
<div class="bg-black rounded-md mb-4">
<pre class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-javascript"><span class="hljs-keyword">const</span> express = <span class="hljs-built_in">require</span>(<span class="hljs-string">'express'</span>);
<span class="hljs-keyword">const</span> mongodb = <span class="hljs-built_in">require</span>(<span class="hljs-string">'mongodb'</span>);
<span class="hljs-keyword">const</span> app = <span class="hljs-title function_">express</span>();
<span class="hljs-keyword">const</span> port = <span class="hljs-number">3000</span>;

mongodb.<span class="hljs-property">MongoClient</span>.<span class="hljs-title function_">connect</span>(<span class="hljs-string">'mongodb://localhost:27017'</span>, <span class="hljs-function">(<span class="hljs-params">err, client</span>) =&gt;</span> {
  <span class="hljs-keyword">if</span> (err) {
    <span class="hljs-variable language_">console</span>.<span class="hljs-title function_">error</span>(err);
    <span class="hljs-keyword">return</span>;
  }

  <span class="hljs-keyword">const</span> db = client.<span class="hljs-title function_">db</span>(<span class="hljs-string">'mydb'</span>);

  app.<span class="hljs-title function_">get</span>(<span class="hljs-string">'/'</span>, <span class="hljs-function">(<span class="hljs-params">req, res</span>) =&gt;</span> {
    res.<span class="hljs-title function_">send</span>(<span class="hljs-string">'Connected to MongoDB!'</span>);
  });

  app.<span class="hljs-title function_">listen</span>(port, <span class="hljs-function">() =&gt;</span> {
    <span class="hljs-variable language_">console</span>.<span class="hljs-title function_">log</span>(<span class="hljs-string">`Server is running at http://localhost:<span class="hljs-subst">${port}</span>`</span>);
  });
});
</code></pre>
</div>
<h2>Step 3: Create an Angular App</h2>
<p>Navigate to a different directory where you want to create your Angular app:</p>
<div class="bg-black rounded-md mb-4">
<pre class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash"><span class="hljs-built_in">cd</span> ..
ng new mean-angular-app
<span class="hljs-built_in">cd</span> mean-angular-app
</code></pre>
</div>
<p>Serve your Angular app:</p>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">ng serve<br />
</code></div>
</div>
<p>You should see &#8220;Angular Live Development Server is listening on localhost:4200&#8221; in your console. You can visit this URL in your browser to see your Angular app.</p>
<h2>Step 4: Connect Angular to Express.js</h2>
<p>First, install the <code>http</code> package in your Angular app:</p>
<div class="bg-black rounded-md mb-4">
<pre class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">npm install @angular/common/http</code></pre>
<p>Update the <code>app.component.ts</code> file in your Angular app to make a GET request to your Express.js server</p>
<div class="bg-black rounded-md mb-4">
<pre class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-typescript"><span class="hljs-keyword">import</span> { <span class="hljs-title class_">HttpClient</span> } <span class="hljs-keyword">from</span> <span class="hljs-string">'@angular/common/http'</span>;

<span class="hljs-keyword">export</span> <span class="hljs-keyword">class</span> <span class="hljs-title class_">AppComponent</span> {
  title = <span class="hljs-string">'mean-angular-app'</span>;
  message = <span class="hljs-string">''</span>;

  <span class="hljs-title function_">constructor</span>(<span class="hljs-params"><span class="hljs-keyword">private</span> http: HttpClient</span>) {
    <span class="hljs-variable language_">this</span>.<span class="hljs-property">http</span>.<span class="hljs-title function_">get</span>(<span class="hljs-string">'http://localhost:3000'</span>).<span class="hljs-title function_">subscribe</span>(<span class="hljs-function">(<span class="hljs-params">data: <span class="hljs-built_in">any</span></span>) =&gt;</span> {
      <span class="hljs-variable language_">this</span>.<span class="hljs-property">message</span> = data;
    });
  }
}
</code></pre>
</div>
<p>Update the <code>app.component.html</code> file in your Angular app to display the message from your Express.js server:</p>
<pre class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-html"><span class="hljs-tag">&lt;<span class="hljs-name">h1</span>&gt;</span>{{ message }}<span class="hljs-tag">&lt;/<span class="hljs-name">h1</span>&gt;</span></code></pre>
<h2>Conclusion</h2>
<p>Congratulations! You&#8217;ve just created your first MEAN Stack application on a ServerStadium VM instance. This guide only scratches the surface of what you can do with the MEAN Stack. To further your knowledge, explore our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">Knowledge Base</a> for more tutorials and guides.</p>
<p>Remember, our team at ServerStadium is always ready to assist you with your needs. Feel free to <a href="https://serverstadium.com/contact" target="_new" rel="noopener">reach out</a> to us if you have any questions or need further assistance.</p>
</div>
</div>
<p>The post <a href="https://serverstadium.com/knowledge-base/building-mean-stack-app-serverstadium-vm-instances/">Building Your First Application with the MEAN Stack on ServerStadium VM Instances</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Step-by-Step MEAN Stack Setup on ServerStadium VM Instances</title>
		<link>https://serverstadium.com/knowledge-base/mean-stack-setup-serverstadium-vm-instances/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Tue, 30 May 2023 21:02:29 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=11688</guid>

					<description><![CDATA[<p>Setting up a MEAN Stack (MongoDB, Express.js, Angular, Node.js) can sometimes be complex, especially for newcomers. However, with ServerStadium&#8217;s VM instances, the process is straightforward. In this tutorial, we&#8217;ll guide you step by step through the entire process. Before we get started, be sure to visit our comprehensive Knowledge Base for a wealth of other&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/mean-stack-setup-serverstadium-vm-instances/">Step-by-Step MEAN Stack Setup on ServerStadium VM Instances</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Setting up a MEAN Stack (MongoDB, Express.js, Angular, Node.js) can sometimes be complex, especially for newcomers. However, with ServerStadium&#8217;s VM instances, the process is straightforward. In this tutorial, we&#8217;ll guide you step by step through the entire process.</p>
<p>Before we get started, be sure to visit our comprehensive <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">Knowledge Base</a> for a wealth of other useful tutorials and guides.</p>
<h2>Step 1: Register Your Account</h2>
<p>To kick off, you&#8217;ll need to register an account on our <a href="https://cp.serverstadium.com/register-user" target="_new" rel="noopener">Registration Page</a>. Fill out your details, and create your account. Following registration, you&#8217;ll gain access to your personal Cloud Dashboard.</p>
<h2 data-id="articleTOC_1">Step 2: Choose Your Cloud Instance</h2>
<p>From your Cloud Dashboard, go to the ‘Add VM’ section. Here, you’ll find a variety of cloud instance options. Select the one that suits your needs. If you need help deciding, our <a href="https://serverstadium.com/pricing/" target="_new" rel="noopener">Instance Pricing Guide</a> can help you.</p>
<h2>Step 3: Install Node.js and NPM</h2>
<p>Node.js is a JavaScript runtime built on Chrome&#8217;s V8 JavaScript engine. It&#8217;s designed to build scalable network applications. Node.js uses an event-driven, non-blocking I/O model that is lightweight and efficient.</p>
<p>NPM (Node Package Manager) is the default package manager for Node.js. It&#8217;s used for installing, sharing, and distributing code, managing dependencies in your projects, and much more.</p>
<p>To install Node.js and NPM, you can run the following commands:</p>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">sudo apt update</code></div>
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">sudo apt install nodejs npm<br />
</code></div>
</div>
<p>You can verify the installation with <code>nodejs -v</code> and <code>npm -v</code>.</p>
<h2>Step 4: Install MongoDB</h2>
<p>MongoDB is a source-available cross-platform document-oriented database program. It&#8217;s classified as a NoSQL database program, which means it doesn&#8217;t use the traditional tabular relational database structure. Instead, it uses JSON-like documents with optional schemas.</p>
<p>To install MongoDB, run the following commands:</p>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">sudo apt install mongodb</code></div>
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">sudo systemctl status mongodb<br />
</code></div>
</div>
<p>The first command will install MongoDB, and the second will check the status of MongoDB to ensure it&#8217;s running correctly.</p>
<h2>Step 5: Install Express.js</h2>
<p>Express.js, or simply Express, is a web application framework for Node.js, designed for building web applications and APIs. It&#8217;s minimalistic and flexible and provides a robust set of features for web and mobile applications.</p>
<p>To install Express.js, you must create a project directory, navigate to it, and initialize a new Node.js application using NPM. After that, you can install Express.js:</p>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash"><span class="hljs-built_in">mkdir</span></code><code class="!whitespace-pre hljs language-bash">myapp</code></div>
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash"><span class="hljs-built_in">cd</span> myapp</code></div>
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">npm init</code></div>
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">npm install express<br />
</code></div>
</div>
<h2>Step 6: Install Angular</h2>
<p>Angular is a platform for building web applications. It provides a way to create single-page applications requiring only HTML, CSS, and JavaScript on the client side.</p>
<p>To install Angular, you need to install Angular CLI (Command Line Interface), a command line tool used to scaffold and build Angular apps using node.js style (commonJs) modules. Not only does it provide you with scaffolding for your apps, but it also helps you manage your entire Angular project.</p>
<p>Install Angular CLI globally using NPM:</p>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">npm install -g @angular/cli<br />
</code></div>
</div>
<p>You can verify the installation with <code>ng version</code>.</p>
<h2>Step 7: Create Your Application</h2>
<p>Now that your MEAN Stack is set up, you can start building your application. This involves creating an Express.js server, setting up routes for your application, connecting your application to your MongoDB database, and building your front-end with Angular.</p>
<p>If you&#8217;re new to the MEAN Stack, check out our introductory <a href="https://serverstadium.com/knowledge-base/mean-stack-intro" target="_new" rel="noopener">MEAN Stack tutorial</a> to get a detailed walk-through of how to create your first MEAN Stack application.</p>
<h2>Conclusion</h2>
<p>Congratulations! You now have a MEAN Stack set up in your ServerStadium VM instance! You&#8217;re ready to dive into web application development and harness the powerful capabilities of ServerStadium&#8217;s VM instances.</p>
<p>Remember, our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">Knowledge Base</a> is a treasure trove of tutorials, guides, and helpful tips. If you ever need assistance, don&#8217;t hesitate to contact our support team.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/mean-stack-setup-serverstadium-vm-instances/">Step-by-Step MEAN Stack Setup on ServerStadium VM Instances</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
