How to Install Typesense on Windows 10

In this tutorial, we'll guide you through the process of installing Typesense on Windows 10.

Prerequisites

To install Typesense, you'll need the following:

  • Windows 10 (64-bit)
  • Git

Step 1: Download the Typesense repository

  • Open a terminal
  • Clone the Typesense repository by running the following command on the terminal:
git clone https://github.com/typesense/typesense.git

Step 2: Install the dependencies

  • Navigate to the Typesense directory by running the following command:
cd typesense
  • Install the dependencies by running the following command:
npm install

Step 3: Configuring the data directory

  • Create a new directory for Typesense data files by running the following command:
mkdir -p ~/typesense-data-dir

Note: You can change ~/typesense-data-dir to any directory you prefer.

Step 4: Start Typesense

  • Start Typesense by running the following command:
npm start -- --data-dir ~/typesense-data-dir

Note: The -- before data-dir is important, otherwise npm will interpret it as an argument to npm itself rather than an argument to the Typesense command.

  • Visit http://localhost:8108 in your web browser to confirm that Typesense is running. You should see a Typesense landing page.

Congratulations! You have successfully installed Typesense on your Windows 10 machine. Now you can start exploring Typesense and its features.