Giter Site home page Giter Site logo

commanded-eventstore-adapter's Introduction

EventStore adapter for Commanded

Use the PostgreSQL-based EventStore with Commanded.

Changelog

MIT License

Build Status

Getting started

The package can be installed from hex as follows.

  1. Add commanded_eventstore_adapter to your list of dependencies in mix.exs:

    def deps do
      [{:commanded_eventstore_adapter, "~> 0.3"}]
    end
  2. Include :eventstore in the list of extra applications to start in mix.exs:

    def application do
      [
        extra_applications: [
          :logger,
          :eventstore,
        ],
      ]
    end
  3. Configure Commanded to use the Commanded.EventStore.Adapters.EventStore adapter:

    config :commanded,
      event_store_adapter: Commanded.EventStore.Adapters.EventStore
  4. Configure the eventstore in each environment's mix config file (e.g. config/dev.exs), specifying usage of the included JSON serializer:

    config :eventstore, EventStore.Storage,
      serializer: Commanded.Serialization.JsonSerializer,
      username: "postgres",
      password: "postgres",
      database: "eventstore_dev",
      hostname: "localhost",
      pool_size: 10
  5. Create the eventstore database and tables using the mix task:

    $ mix do event_store.create, event_store.init

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.