# Eventide for Postgres Setup

# Software Prerequisites

  • Ruby (minimum version: 2.4)
  • Postgres (minimum version: 9.5)
  • GCC (required for installing the PG gem)

# Install the Eventide Postgres Gem

# Using RubyGems Directly

gem install eventide-postgres

# Via Bundler

# Gemfile
source 'https://rubygems.org'
gem 'eventide-postgres'
bundle install

# Create the Message Store Database

See the installation section of the message store documentation for instructions on running the database creation command line tool.

The command to install the database is:

mdb-create-db

Or via Bundler:

bundle exec mdb-create-db

# Installation Directory

WARNING

We recommend against installing any stack or framework into the system-wide gem registry.

Rather than install the Eventide toolkit into the system-wide registry, we recommend that you install the gems into the directory structure of the project that uses Eventide. This is not strictly required, but it's a habit that can help avoid time spent troubleshooting and debugging unintended consequences of having the same library installed in multiples locations in the search path.

The following command installs the gems into a subdirectory named gems of the current directory:

# Via RubyGems

gem install eventide-postgres --install-dir ./gems

# Via Bundler

bundle install --path=./gems

For example, if the current directory is my-project, then command above would install the gems into my-project/gems.