NocoDB is a free and open-source tool for building custom backends for web and mobile apps. In this tutorial, we will guide you through the steps of installing NocoDB on Manjaro.
NocoDB is a Node.js application, which means we need to install Node.js and npm (Node Package Manager) first. To do so, open a Terminal and run the following command:
sudo pacman -S nodejs npm
NocoDB requires a PostgreSQL database to store data. We can install it using the following command:
sudo pacman -S postgresql
After the installation is complete, start and enable the PostgreSQL service:
sudo systemctl start postgresql.service
sudo systemctl enable postgresql.service
We need to create a new database and a user for NocoDB. To do so, log in to the PostgreSQL server as the PostgreSQL user:
sudo -iu postgres
Then, create a new database and a user:
createdb nocodb
createuser -P nocodb
You will be prompted to enter a password for the new user. Choose a strong password and remember it.
Now it's time to install NocoDB. We can do so using npm:
sudo npm install -g nocodb
Before we start NocoDB, we need to configure it. Create a new configuration file named config.json
using the following command:
sudo nano /etc/nocodb/config.json
Paste the following configuration into the file:
{
"port": 8080,
"dbConfig": {
"client": "pg",
"connection": {
"host": "localhost",
"user": "nocodb",
"password": "YOUR_PASSWORD",
"database": "nocodb"
}
}
}
Replace YOUR_PASSWORD
with the password you chose for the nocodb
user in Step 3. Save and exit the file.
Now we can start NocoDB using the following command:
sudo nocodb
You should see the following output:
✔ NocoDB STARTED [mode: single | port: 8080 | timezone: Asia/Kolkata | db_type: pg]
Now open your web browser and go to http://localhost:8080
. You should see the NocoDB login screen.
Log in to NocoDB using the following credentials:
admin
nocodb
You will be prompted to change the password. Choose a strong password and remember it.
After logging in, you will be taken to the project dashboard. Click on the "Create New Project" button and follow the instructions to create a new project.
Congratulations! You have successfully installed NocoDB on Manjaro and created a new project. Now you can use NocoDB to build custom backends for your web and mobile apps.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!