For Developers

Starting the server for developers

git clone https://github.com/MAIF/izanami.git --depth=1

Starting the js server

Then go to the js folder :

cd izanami-server/javascript

And then

yarn install 
yarn start  

Starting play server

sbt 
> ~izanami-server/run 

Use a specific DB

You use a specific data base using docker

Cassandra

docker rm cassandra && docker run --name cassandra -e CASSANDRA_LISTEN_ADDRESS=127.0.0.1 -p 9042:9042 -p 7000:7000 cassandra:3.11
sbt 
> ~izanami-server/run -Dizanami.db.default=Cassandra

Redis

docker rm redis-iznanami && docker run --name redis-iznanami -v $(pwd)/redisdata:/data -p 6379:6379 redis
sbt 
> ~izanami-server/run -Dizanami.db.default=Redis

Elasticsearch

docker rm elasticsearch && docker run --name elasticsearch -e "xpack.security.enabled=false" -e "ES_JAVA_OPTS=-Xms512m -Xmx512m" -p 9200:9200 docker.elastic.co/elasticsearch/elasticsearch:5.5.3
sbt 
> ~izanami-server/run -Dizanami.db.default=Elastic

AWS DynamoDB

docker rm dynamodb && docker run --name dynamodb -p 8000:8000 amazon/dynamodb-local
sbt 
> ~izanami-server/run -Dizanami.db.default=Dynamo -Dizanami.db.dynamo.host=localhost -Dizanami.db.dynamo.port=8000

Kafka as Event store

docker run -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=127.0.0.1 --env ADVERTISED_PORT=9092 --env AUTO.CREATE.TOPICS.ENABLE spotify/kafka
sbt 
> ~izanami-server/run -Dizanami.events.store=Kafka 

Akka as Event store

First node

sbt 
> ~izanami-server/run -Dizanami.events.store=Distributed 

Second node

sbt 
> ~izanami-server/run -Dizanami.events.store=Distributed -Dcluster.akka.remote.netty.tcp.port=2552 -Dhttp.port=9001 
The source code for this page can be found here.