Skip to content

Running the system on physical server

Przemek Sokół edited this page Jul 18, 2018 · 13 revisions

Prerequisites

Event Store (EventStore)

Download and install EventStore manually or simply start docker container from command-line:

docker run --name ecommerce-event-store -d -p 2113:2113 -p 1113:1113 -e EVENTSTORE_RUN_PROJECTIONS=All newicom/eventstore

View Store (PostgreSQL)

Install manually or start docker container from command-line:

docker run --name sales-view-store -d -p 5432:5432 postgres

💡 Postgresql console: psql -h localhost -p 5432 -U postgres

Building the system

sbt stage

Running the system

As there are multiple applications per subsystem, running/monitoring the whole system is not straightforward. If you want to start the system as quickly as possible just run run-all bash script. But I would recommend you to configure supervisord to include supervisord-configs directory and use supervisorctrl command-line tool to start/restart/stop all services.

Testing the system

You are ready now to test the system. Please choose: