Skip to content

arvindsj/springreactive-poc

Repository files navigation

springreactive-poc

Instructions to run the project:

This springboot project is dockerized. So you need a docker engine to run the project. If you want to run it in your local Postgres then change the application.properties to connect to your local Postgres DB. You can find the application.properties under springreactive-poc/src/main/resources/
  1. Download the project and unzip it
  2. Using terminal 'cd' to springreactive-poc
  3. Run "gradle clean build"
  4. Execute docker-compose -f docker-compose.yml up (This should build and run the project and Postgres DB in separate containers)
  5. If you want to view inside Postgress container, open a new terminal window then type docker exec -it postgres_db psql centraldb -U admin -W admin
  6. It will ask for the password. Type "admin" as password.
  7. Now you will be inside the Postgres container's command prompt. 6.1) Check the tables
   select * from employee;
   select * from comments;

7) Trigger a GET call : http://localhost:8080/employee/all will give you the newly inserted record 8) To trigger a NON-BLOCKING REST call use, http://localhost:8080/external/employee/comments/all 9) Check VendorRoutes.java for all the endpoints

About

This repo uses Java Springboot + Reactive Postgres + Docker-compose tech to build a POC

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published