How to Install Para on Debian
Para is a decentralized social network built on the blockchain. In this tutorial, we will guide you through the process of installing Para on Debian.
Prerequisites
Before we begin, please make sure that you have the following:
- A Debian system installed on your computer
- A user account with sudo privileges
- A web browser
Step 1: Download Para
To download Para, you need to clone the repository from GitHub. Follow these steps:
- Open a terminal window on your Debian system.
- Use the following command to install git:
sudo apt-get install git
- Use the following command to clone the Para repository:
git clone https://github.com/paraio/para.git
The repository will be cloned in your current working directory.
Step 2: Install Prerequisites
Para requires a few software packages to be installed before it can be built successfully.
- Install Node.js and NPM:
sudo apt-get install nodejs npm
- Install the Angular CLI:
sudo npm install -g @angular/cli
- Install the Ionic CLI:
sudo npm install -g @ionic/cli
Step 3: Set Up a Database
Para uses a PostgreSQL database. Follow these steps to set it up:
- Install PostgreSQL:
sudo apt-get install postgresql
- Log in to the PostgreSQL client:
sudo -u postgres psql
- Create a new user and database for Para:
CREATE USER para WITH PASSWORD 'your_password';
CREATE DATABASE para;
GRANT ALL PRIVILEGES ON DATABASE para TO para;
- Exit the PostgreSQL client:
\q
Step 4: Build and Run Para
Now that you have set up the prerequisites and the database, you can build and run Para. Follow these steps:
- Change to the Para directory:
cd para
- Install the required packages:
npm install
- Build the Para client:
ionic build
- Build the Para server:
npm run server:build
- Start the Para server:
npm run server:start
You should now be able to access Para in your web browser at http://localhost:3333.
Conclusion
Congratulations! You have successfully installed Para on Debian. You can now use it to connect with others in a decentralized network built on the blockchain.