How to Install Simply Shorten on Linux Mint Latest

Simply Shorten is an open-source URL shortener service that can be used to create short links. In this tutorial, we will guide you through the installation process of Simply Shorten on Linux Mint Latest.

Prerequisites

Step 1 - Install Dependencies

The first step is to install the necessary dependencies required by Simply Shorten. Open the terminal and execute the following commands:

sudo apt-get update
sudo apt-get install -y curl git npm mariadb-server

Step 2 - Clone the Repository

Now, we need to clone the Simply Shorten repository. Run the following command in the terminal to clone the repository:

git clone https://gitlab.com/draganczukp/simply-shorten.git

This will clone the Simply Shorten repository to your current directory.

Step 3 - Install NodeJS and npm

Now, we need to install NodeJS and npm to run the Simply Shorten application. Run the following command in the terminal to install NodeJS and npm:

sudo apt-get install -y nodejs npm

Step 4 - Install Node Modules

Navigate to the cloned Simply Shorten repository and install the Node modules by running the following command:

cd simply-shorten
sudo npm install

Step 5 - Configure Database Connection

Simply Shorten requires a MariaDB database to store the shortened links data. We need to create a database and configure the connection settings.

Log in to the MariaDB server using the root credentials:

sudo mysql -u root -p

Create a new database:

CREATE DATABASE simply_shorten;

Create a user with the necessary privileges for this database:

CREATE USER 'simply_shorten'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON simply_shorten.* TO 'simply_shorten'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;

Now, we need to configure the database connection details in the config.json file. Run the following command to open the file in Nano editor:

sudo nano config.json

Replace the values of user, password, and database with your database connection details.

Save and quit the file using Ctrl+X, then Y, and finally Enter.

Step 6 - Start the Application

Navigate to the cloned Simply Shorten repository and start the application by running the following command:

npm start

You should see the following output on your terminal:

> simply-shorten@1.0.0 start /path/to/simply-shorten
> node bin/www

Simply Shorten listening on port 3000

Step 7 - Access the Application

Simply Shorten is running on port 3000. Open your web browser and navigate to http://localhost:3000/ to access the application.

Congratulations! You have successfully installed Simply Shorten on Linux Mint Latest. You can now start using it to create short links.

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!