Created
January 22, 2021 02:48
-
-
Save HabeebCycle/16610a7d3f07d969c583ef50006e984c to your computer and use it in GitHub Desktop.
reactive-api-redis-demo
This file contains hidden or 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
spring: | |
application: | |
name: Spring-Reactive-Data-Redis | |
# Redis DB configuration | |
redis: | |
host: localhost | |
port: 6379 | |
database: 0 | |
password: 50M3*S3cured*Pa55W0rd | |
# Server configuration | |
server: | |
port: 8086 | |
error: | |
include-message: always | |
# Logging settings | |
logging: | |
level: | |
root: INFO | |
com.habeebcycle: DEBUG | |
org.springframework.data.redis: DEBUG | |
--- | |
spring: | |
config: | |
activate: | |
on-profile: | |
- docker | |
on-cloud-platform: KUBERNETES | |
redis: | |
host: redis-db | |
server: | |
port: 8080 |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<parent> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-parent</artifactId> | |
<version>2.4.2</version> | |
<relativePath/> <!-- lookup parent from repository --> | |
</parent> | |
<groupId>com.habeebcycle.demo</groupId> | |
<artifactId>reactive-api-redis</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<name>reactive-api-redis</name> | |
<description>Demo project for creating a reactive webflux restful api with reactive Redis a key-value database</description> | |
<properties> | |
<java.version>11</java.version> | |
</properties> | |
<dependencies> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-data-redis-reactive</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-webflux</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-test</artifactId> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>io.projectreactor</groupId> | |
<artifactId>reactor-test</artifactId> | |
<scope>test</scope> | |
</dependency> | |
<!-- Embedded Redis for testing purposes--> | |
<dependency> | |
<groupId>it.ozimov</groupId> | |
<artifactId>embedded-redis</artifactId> | |
<version>0.7.3</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<finalName>user-service</finalName> | |
<plugins> | |
<plugin> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-maven-plugin</artifactId> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment