Skip to content
This repository has been archived by the owner on Jan 29, 2019. It is now read-only.

Latest commit

 

History

History
49 lines (39 loc) · 1.68 KB

dev-environment.md

File metadata and controls

49 lines (39 loc) · 1.68 KB

Development environment

Useful Links

Prestart

  • Instal Java 8 JDK
  • Install Docker and Docker Compose
  • Install Intellij Idea

Run Kafka, Elassandra, Prometheus and Grafana

Start containers(required)

For mac:

docker-compose -f dev-environment/env-mac.yml up -d

For linux family:

docker-compose -f dev-environment/env.yml up -d

Bootstrap Elassandra with keyspaces(required)

docker cp dev-environment/elassandra-bootstrap.cql  elassandra-markets:/elassandra-bootstrap.cql
docker exec -it elassandra-markets bash
cqlsh -f elassandra-bootstrap.cql

Import project to Intellij Idea

Open Project in idea by selecting: Import Project -> selecting build.gradle file from the repository root Select Import Project Select Build Gradle Import Settings Wait for dependency downloading and indexation

Run Exchanges Connector, Tickers, or API from intellij Idea

Go to ExchangesConnectorApplication.kt and press green triangle on left to the code (on example line 16): Start Pump

If, you use parity endpoint different rather that localhost:8545, than Etherdelta connector will fail due to lack of environment property PARITY_URL. Let's define it: Select "Edit Configurations"

Select Edit Run Configuration

Add next properties:

Add variables

Now, run exchanges connector one more time then etherdelta connector should start. You can add environment variables in the same way for Tickers, APIs and etc.