Coder Social home page Coder Social logo

java-microservice-self-certification's Introduction

Java Microservice - Self Certification

This is a demo of how java microservices can can be self-certified with a component level test suite of functional, integration and unit tests.

Flow

User Controller --> User Service --> Time Server Gateway --> api.sunrise-sunset.org
                                 --> User DB Connector   --> Postgres Database

Pre-requisites to run or test

  1. Install Docker Desktop or Docker Engine depending on your OS
  2. Make sure Docker daemon is running
  3. Make sure Java 11+ and Gradle 7.4+ is properly setup

How to run locally

  1. Make sure Docker is installed and running
  2. Execute following command to start the DB
docker run -d \
--name postgres-self-cert \
-e POSTGRES_PASSWORD=mysecretpassword \
-e PGDATA=/var/lib/postgresql/data/pgdata \
-p 5432:5432 \
-v /Users/chandima/Dev/db:/var/lib/postgresql/data \
postgres
  1. Execute ./gradlew bootRun to start service

How to test locally

  1. Make sure Docker installed and running
  2. Execute ./gradlew test

java-microservice-self-certification's People

Contributors

cjayawickrema avatar

Stargazers

Israel Santiago avatar

Watchers

Israel Santiago avatar James Cloos avatar  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.