Setup and install Reactjs on Ubuntu 24.04 in Azure, AWS or Google GCP. Run the latest version of React.js using the publicly available image from the marketplace.
Cloud React.js on Ubuntu
Reactjs on Azure
Deploy React.js on Ubuntu 24.04 in Azure
Reactjs on AWS
Coming soon…
Reactjs on GCP
Coming soon…
Getting Started with ReactJS on Ubuntu
Once your React.JS server has been deployed, the following links explain how to connect to a Linux VM:
Once connected and logged in, the following section explains how to start using ReactJS and create your first app.
Confirm ReactJS, Nodejs and NPM Versions
Once logged in you can confirm the versions ReactJS, NodeJS and NPM with the following commands:
create-react-app --version
node -v
npm -v
Create React.JS App
The first step is to create your ReactJS app with the following command. In my example i will create an app called InfraSOS:
create-react-app infrasos
You will receive similar output to the following. Make a note of the React app installation folder as you will need this later. In my example its installed in /home/azureadmin/infrasos.
As you can see, there are commands to start the React.js server, but we will use another method in the next step.
Setup ReactJS Service
Creating a systemd service file will help you to easily manage your React.js application with the following commands. Let’s first create the service file:
sudo touch /lib/systemd/system/reactjs.service
Next, open the file with the following command:
sudo nano /lib/systemd/system/reactjs.service
Paste the following code in, making sure to add your app and working directory name as we created earlier “infrasos“:
Disclaimer: ReactJS® is a trademark owned by Meta Platforms, Inc. and is licensed under MIT License. The license comes with a “no warranty” clause, meaning the software is provided “as-is” without any guarantees or liability for issues that may arise.
Cloud Solution Architect. Helping customers transform their business to the cloud. 20 years experience working in complex infrastructure environments and a Microsoft Certified Solutions Expert on everything Cloud.
00votes
Article Rating
Subscribe
Login and comment with
I allow to create an account
When you login first time using a Social Login button, we collect your account public profile information shared by Social Login provider, based on your privacy settings. We also get your email address to automatically create an account for you in our website. Once your account is created, you'll be logged-in to this account.
DisagreeAgree
Login and comment with
I allow to create an account
When you login first time using a Social Login button, we collect your account public profile information shared by Social Login provider, based on your privacy settings. We also get your email address to automatically create an account for you in our website. Once your account is created, you'll be logged-in to this account.