How to locally set up an Event Store

Saad Shafiq
2 min readMar 1, 2023

This article is different from the official documentation of the Event Store as it doesn't work properly.

Setting up an event store locally by the terminal can be a great way to develop and test your applications. With just a few simple steps, you can have a fully functional event store running on your machine. In this article, we will go over each step of the process in detail.

Step 1: Navigate to a temporary directory

The first step is to navigate to a temporary directory. This can be done by opening your terminal and typing the following command:

This will change your current working directory to the temporary directory.

Step 2: Clone the EventStore repository

The next step is to clone the EventStore repository from GitHub. This can be done by running the following command:

This will create a new directory called “EventStore” in your current working directory and download the repository into it.

Step 3: Navigate to the EventStore directory

Once the repository has been cloned, navigate to the EventStore directory by running the following command:

This will change your current working directory to the EventStore directory.

Step 4 (Optional): Checkout a specific version

If you want to check out a specific version of EventStore, you can do so by running the following command:

This will checkout the specified version of EventStore.

Step 5: Build the Docker image

To build the Docker image, run the following command:

This will build a Docker image named “local/eventstoredb” with the specified platform and runtime.

Step 6: Run the Docker container

Finally, run the Docker container by executing the following command:

This command will start a Docker container with the specified options and run the latest version of the “local/eventstoredb” Docker image.

In conclusion, setting up an event store locally by the terminal can be a straightforward process, especially with the step-by-step guide provided above. By following these instructions, you can quickly and easily set up a fully functional event store on your machine for development and testing purposes.

Also if you get the following error :

The solution is to restore the docker desktop to the default settings or upgrade it.

https://github.com/docker/for-mac/issues/5283

--

--