Hi,
I'm trying to play around the boilerplate code and understand how is working the eventbus structure, but I have problems writing to the eventstore.
I've tried to console.log the functions from commands, command handlers, till the event handlers, and I can see that code works well until needs to write to the store.
console.log('444', 'goes here');
const result = await this.eventStore.client.writeEvent(streamName, type, event);
console.log('5555', 'never is shown this message');
I'm starting the project from bash with up.sh script and everything is ok, project running on 7070 port.
One issue I have on windows 10 with docker running in daemon mode the evenstore, so I need to go to docker settings and to expose daemon on port 2375 without TLS, this was like workaround to start the eventstore.
But, everything is hook-up and i can see that the connection to evenstore is established.
{ protocol: 'http',
hostname: 'eventstore',
tcpPort: 2113,
httpPort: 2113,
credentials: { username: 'admin', password: 'changeit' },
poolOptions: { min: 1, max: 10 } }
}
BR, Igor
Hi,
I'm trying to play around the boilerplate code and understand how is working the eventbus structure, but I have problems writing to the eventstore.
I've tried to console.log the functions from commands, command handlers, till the event handlers, and I can see that code works well until needs to write to the store.
I'm starting the project from bash with up.sh script and everything is ok, project running on 7070 port.
One issue I have on windows 10 with docker running in daemon mode the evenstore, so I need to go to docker settings and to expose daemon on port 2375 without TLS, this was like workaround to start the eventstore.
But, everything is hook-up and i can see that the connection to evenstore is established.
BR, Igor