Skip to content

Master4Novice/ekaasaa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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