forked from cer/event-sourcing-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
146 changed files
with
528 additions
and
781 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...chardson/eventstore/javaexamples/banking/backend/commandside/accounts/AccountCommand.java
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...on/eventstore/javaexamples/banking/backend/commandside/accounts/DeleteAccountCommand.java
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...isrichardson/eventstore/javaexamples/banking/web/main/AccountsCommandSideServiceMain.java
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
...re/javaexamples/banking/web/commandside/accounts/CommandSideWebAccountsConfiguration.java
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...mples/banking/web/commandside/accounts/AccountControllerIntegrationTestConfiguration.java
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
java-spring/accounts-command-side-web/src/test/resources/logback.xml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...hrisrichardson/eventstore/javaexamples/banking/web/main/AccountsQuerySideServiceMain.java
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
...isrichardson/eventstore/javaexamples/banking/web/queryside/QuerySideWebConfiguration.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM java:openjdk-8u91-jdk | ||
CMD java ${JAVA_OPTS} -jar accounts-service.jar | ||
EXPOSE 8080 | ||
COPY build/libs/accounts-service.jar . |
6 changes: 2 additions & 4 deletions
6
...customers-query-side-service/build.gradle → java-spring/accounts-service/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
apply plugin: VerifyMongoDBConfigurationPlugin | ||
apply plugin: VerifyEventStoreEnvironmentPlugin | ||
apply plugin: EventuateDependencyPlugin | ||
|
||
apply plugin: 'spring-boot' | ||
|
||
dependencies { | ||
compile project(":customers-query-side-web") | ||
compile project(":common-backend") | ||
compile project(":common-swagger") | ||
|
||
compile "org.springframework.boot:spring-boot-starter-web" | ||
compile "org.springframework.boot:spring-boot-starter-actuator" | ||
|
||
testCompile project(":testutil") | ||
testCompile project(":customers-command-side-service") | ||
testCompile "junit:junit:4.11" | ||
testCompile "org.springframework.boot:spring-boot-starter-test" | ||
testCompile "io.eventuate.client.java:eventuate-client-java-jdbc:$eventuateClientVersion" | ||
} | ||
|
||
test { | ||
ignoreFailures System.getenv("EVENTUATE_API_KEY_ID") == null | ||
} | ||
|
21 changes: 21 additions & 0 deletions
21
.../chrisrichardson/eventstore/javaexamples/banking/accountsservice/AccountsServiceMain.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package net.chrisrichardson.eventstore.javaexamples.banking.accountsservice; | ||
|
||
import io.eventuate.javaclient.driver.EventuateDriverConfiguration; | ||
import net.chrisrichardson.eventstore.javaexamples.banking.accountsservice.web.AccountsWebConfiguration; | ||
import net.chrisrichardson.eventstore.javaexamples.banking.commonswagger.CommonSwaggerConfiguration; | ||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | ||
import org.springframework.context.annotation.ComponentScan; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.context.annotation.Import; | ||
|
||
@Configuration | ||
@Import({AccountsWebConfiguration.class, EventuateDriverConfiguration.class, CommonSwaggerConfiguration.class}) | ||
@EnableAutoConfiguration | ||
@ComponentScan | ||
public class AccountsServiceMain { | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.run(AccountsServiceMain.class, args); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...risrichardson/eventstore/javaexamples/banking/accountsservice/backend/AccountCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package net.chrisrichardson.eventstore.javaexamples.banking.accountsservice.backend; | ||
|
||
|
||
import io.eventuate.Command; | ||
|
||
interface AccountCommand extends Command { | ||
} |
2 changes: 1 addition & 1 deletion
2
.../commandside/accounts/AccountService.java → ...countsservice/backend/AccountService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...commandside/accounts/AccountWorkflow.java → ...ountsservice/backend/AccountWorkflow.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
...ndside/accounts/CreditAccountCommand.java → ...service/backend/CreditAccountCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...andside/accounts/DebitAccountCommand.java → ...sservice/backend/DebitAccountCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...hardson/eventstore/javaexamples/banking/accountsservice/backend/DeleteAccountCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package net.chrisrichardson.eventstore.javaexamples.banking.accountsservice.backend; | ||
|
||
public class DeleteAccountCommand implements AccountCommand { | ||
} |
2 changes: 1 addition & 1 deletion
2
...mandside/accounts/OpenAccountCommand.java → ...tsservice/backend/OpenAccountCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...mmandside/accounts/AccountController.java → ...ccountsservice/web/AccountController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...hardson/eventstore/javaexamples/banking/accountsservice/web/AccountsWebConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package net.chrisrichardson.eventstore.javaexamples.banking.accountsservice.web; | ||
|
||
import net.chrisrichardson.eventstore.javaexamples.banking.accountsservice.backend.AccountsBackendConfiguration; | ||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | ||
import org.springframework.context.annotation.ComponentScan; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.context.annotation.Import; | ||
|
||
@Configuration | ||
@Import({AccountsBackendConfiguration.class}) | ||
@ComponentScan | ||
public class AccountsWebConfiguration { | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ommandside/accounts/AccountEventTest.java → ...untsservice/backend/AccountEventTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...end/commandside/accounts/AccountTest.java → .../accountsservice/backend/AccountTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nts/AccountControllerIntegrationTest.java → ...web/AccountControllerIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.