How to Install Para on Ubuntu Server Latest
Para is a decentralized application platform that allows developers to build and deploy applications on the blockchain. In this tutorial, we will guide you through the process of installing Para on Ubuntu Server Latest.
Prerequisites
Before starting the installation process, make sure that your Ubuntu Server Latest is up-to-date and has the necessary dependencies installed. You should also have sudo privileges on your server.
Step 1: Update package lists
Connect to your Ubuntu Server Latest and update the package lists using the command below:
sudo apt update
Step 2: Install Node.js
Para requires Node.js version 14 or newer, so you need to install Node.js and its package manager (npm). Run the following command to install Node.js:
sudo apt install nodejs
To confirm that Node.js is installed, run the following command:
node -v
This should output the version number of Node.js installed.
Step 3: Install PM2
PM2 is a process manager that helps you manage Node.js applications. You can use it to start, stop, and monitor your Para node. To install PM2, run the following command:
sudo npm install -g pm2
Step 4: Clone Para repository
Next, clone the Para repository from Github using the command below:
git clone https://github.com/ParityAsia/para.git
This will create a new directory called para in your current working directory.
Step 5: Build Para
Navigate to the para directory using the command below:
cd para
Next, install the dependencies and build Para using the following commands:
npm install
npm run build
This will install the necessary packages and build the Para software.
Step 6: Start Para using PM2
Once you have built Para, you can start it using PM2. Run the following command:
pm2 start npm --name "para" -- start
This will start the Para node and name it "para". You can check the status of the node using the following command:
pm2 status
This should output the status of the "para" node.
Step 7: Enable auto-start
To enable the Para node to start automatically on server reboot, you need to save the PM2 process list. Run the following command:
pm2 save
This will save the current PM2 process list to the startup script.
Conclusion
Congratulations! You have successfully installed Para on Ubuntu Server Latest. Now you can start building and deploying applications on the Para platform. Remember to monitor the node and keep it up-to-date with the latest versions of Para.