How to install NocoDB on Debian Latest

NocoDB is a web application that allows you to create a customizable database in minutes without writing any code. In this tutorial, you will learn how to install NocoDB on Debian Latest.

Prerequisites

Before we start, make sure you have the following:

If you don't have Node.js or MongoDB installed, you can follow the instructions in the following tutorials:

Step 1 - Install NocoDB

To install NocoDB, we will use npm. Open a terminal on your Debian server and run the following command:

sudo npm install -g nocodb

This will install NocoDB globally on your system.

Step 2 - Configure NocoDB

Now that NocoDB is installed, let's configure it to work with MongoDB.

Create a new file called config.json in a directory of your choice. In this example, we will use /opt/nocodb.

sudo mkdir /opt/nocodb
sudo vim /opt/nocodb/config.json

Paste the following configuration into the file and save it:

{
    "dbName": "nocodb",
    "mongo": {
        "dbURL": "mongodb://localhost:27017/nocodb"
    },
    "port": 8080
}

This configuration specifies that NocoDB should use a MongoDB database called nocodb and the URL of the database is mongodb://localhost:27017/nocodb. It also sets the port that NocoDB should listen on to 8080.

Step 3 - Run NocoDB

To start NocoDB, run the following command:

sudo nocodb --config /opt/nocodb/config.json

This will start NocoDB on the port specified in the config.json file. You should see output similar to the following:

[nodemon] starting `nocodb server.js --config /opt/nocodb/config.json`
info: Listening on port 8080

Step 4 - Access NocoDB

You can now access NocoDB by navigating to http://your-ip-address:8080 in your web browser. You should see the NocoDB interface along with a login page.

NocoDB Login Page

Click on "Sign Up" to create a new account. Once you have signed up, you can log in and start using NocoDB to create and manage databases.

Congratulations! You have installed and configured NocoDB on your Debian server.

Conclusion

In this tutorial, we have shown you how to install NocoDB and configure it to work with MongoDB. We hope you find this tutorial helpful and that it helps you get started with using NocoDB.

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!