Coder Social home page Coder Social logo

tanbinh123 / springreactive-poc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arvindsj/springreactive-poc

1.0 1.0 0.0 83 KB

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

Dockerfile 1.74% Java 98.26%

springreactive-poc's Introduction

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

springreactive-poc's People

Contributors

arvindsj avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.