Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/master4novice/ekaasaa

Spring Boot + GraphQL + WebFlux + Reactive Redis
https://github.com/master4novice/ekaasaa

graphql java reactive-programming redis spring-boot webflux

Last synced: about 1 month ago
JSON representation

Spring Boot + GraphQL + WebFlux + Reactive Redis

Awesome Lists containing this project

README

        

# EKAASAA - (GraphQL + Spring Boot + WebFlux + Redis)

- Checkout the code.
- Resolve maven dependency.
- Execute maven clean install

## Start Redis Server

- Go to the location /redis
- Run redis-server.exe file.
- As per the below screen window will open that confirm your redis server

Redis-Server-Running

## Start Spring Boot Application

- Run EkaasaaApplication.java as spring boot application.
- Application will start running on port 8080

## Open GraphQL Endpoint

- Open graphql endpoint http://localhost:8080/graphiql?path=/graphql from your browser
- Refer below image for execting query on graphql

Graphql-Sample-Query

## Docker Integration

- Install Docker Desktop
- Execute below command to pull latest images
```
docker pull redis
docker pull openjdk:21-slim

```
- Execute below command to run redis server on docker
```
docker run --rm -p 6379:6379 -d --name redis-es1 redis redis-server
```
- Execute below command to create network on docker and connect it with redis container
```
docker network create spring-redis-network
docker network connect spring-redis-network redis-es1
```
- Change ip address in application-docker.yml as shown below
```
redis:
host: localhost #change it to your system ip
```
- Execute below command to build the application and create image of service
```
mvn clean install
docker build -t ekaasaa-service .
```
- Execute below command to start service in a container
```
docker run -p 8082:8082 -it --rm --name ekaasaa ekaasaa-service
```

## Contact Me

- For contribution/suggestion/information contact me @dwivna