Skip to content

Commit

Permalink
Merge pull request #20 from marcospereira/update-lagom-service-locator
Browse files Browse the repository at this point in the history
Update lagom service locator
  • Loading branch information
octonato authored Mar 20, 2019
2 parents e8b819a + 05ba504 commit 30bfc6a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ The inventory service consumes a stream of events published to Kafka by the shop

## Setup

To run this application locally you will need access to a Postgres database. We suggest you run it on a docker container but a local or remote native instance will also work.
To run this application locally you will need access to a PostgreSQL database. We suggest you run it on a docker container but a local or remote native instance will also work.

We provide a `docker-compose.yml` file that you can use to run a Postgres database already configured for this application. The docker container will be exposed on port 5432.
We provide a `docker-compose.yml` file that you can use to run a PostgreSQL database already configured for this application. The docker container will be exposed on port 5432.

To create the image and start the container, run the command bellow at the root of this project.

```bash
docker-compose up -d
```

If you prefer to run Postgres on natively your machine, you need to create the database, the user and password yourself. The application expects it to be running on localhost on the default port (5432), and it expects there to be a database called `shopping_cart`, with a user called `shopping_cart` with password `shopping_cart` that has full access to it. This can be created using the following SQL:
If you prefer to run PostgreSQL on natively your machine, you need to create the database, the user and password yourself. The application expects it to be running on localhost on the default port (5432), and it expects there to be a database called `shopping_cart`, with a user called `shopping_cart` with password `shopping_cart` that has full access to it. This can be created using the following SQL:

```sql
CREATE DATABASE shopping_cart;
Expand Down
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ lazy val inventory = (project in file("inventory"))
)
.dependsOn(`shopping-cart-api`, `inventory-api`)

val lombok = "org.projectlombok" % "lombok" % "1.16.18"
val lombok = "org.projectlombok" % "lombok" % "1.18.6"
val postgresDriver = "org.postgresql" % "postgresql" % "42.2.5"
val hamcrestLibrary = "org.hamcrest" % "hamcrest-library" % "2.1" % Test
val akkaDiscoveryServiceLocator = "com.lightbend.lagom" %% "lagom-javadsl-akka-discovery-service-locator" % "0.1.0"
val akkaDiscoveryServiceLocator = "com.lightbend.lagom" %% "lagom-javadsl-akka-discovery-service-locator" % "1.0.0"

val akkaManagementVersion = "1.0.0"
val akkaDiscoveryKubernetesApi = "com.lightbend.akka.discovery" %% "akka-discovery-kubernetes-api" % akkaManagementVersion
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.18</version>
<version>1.18.6</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand All @@ -152,12 +152,12 @@
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-discovery_${scala.binary.version}</artifactId>
<version>2.5.20</version>
<version>2.5.21</version>
</dependency>
<dependency>
<groupId>com.lightbend.lagom</groupId>
<artifactId>lagom-javadsl-akka-discovery-service-locator_${scala.binary.version}</artifactId>
<version>0.1.0</version>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>com.lightbend.akka.discovery</groupId>
Expand Down

0 comments on commit 30bfc6a

Please sign in to comment.