How to Install Typesense on Linux Mint Latest?
Typesense is known for its speedy and easy-to-use search engine that can handle various search requirements. The search engine is open source and built with security and ease of use in mind. This tutorial will explain how to install Typesense on Linux Mint Latest.
Prerequisites
Before we proceed with the installation, ensure that your system meets the following requirements:
- Access to the command line terminal
- A user account with sudo privileges
- A stable internet connection
Step 1: Install Dependencies
Typesense requires several dependencies to run efficiently, such as Node.js and Redis. Execute the following commands to install the necessary dependencies:
sudo apt update
sudo apt install nodejs npm redis-server
After the installation completes, validate the Node.js and Redis versions:
node -v
redis-server --version
Step 2: Download Typesense
Next, we will download the Typesense package. Head over to the official GitHub repository and download the latest stable release:
wget https://github.com/typesense/typesense/releases/download/v0.21.0/typesense-server-0.21.0-linux-amd64.tar.gz
After the download completes, extract the archive to the desired folder:
tar -xvf typesense-server-0.21.0-linux-amd64.tar.gz
A typesense-server folder will be created in the current directory.
Step 3: Configure Typesense
First, change the current directory to the extracted Typesense directory:
cd typesense-server
Copy the example configuration file:
cp ./config/typesense-server-example.ini ./config/typesense-server.ini
We will now configure the typesense-server.ini file based on our requirements. Open the file and update the necessary details, such as the API key, Redis URL, and port.
Save the typesense-server.ini file after the configuration completes.
Step 4: Start Typesense
Start the Typesense service by running the following command:
sudo npm start
If everything is configured correctly, the Typesense server should start running.
Step 5: Test Typesense
To verify that Typesense is working correctly, open a web browser and access the Typesense dashboard by entering the following URL:
http://localhost:8108/
You should see the Typesense dashboard with the API key and several options to create and manage collections.
Conclusion
To conclude, the installation of Typesense on Linux Mint Latest can be completed in a few simple steps. Ensure that all the prerequisites are met, download the Typesense package, configure the typesense-server.ini file, start the Typesense server using the command sudo npm start, and verify that Typesense is working.