Coder Social home page Coder Social logo

btctube / spring-boot-microservices-best-practices Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ehabqadah/spring-boot-microservices-best-practices

0.0 0.0 0.0 86 KB

Best Practices for Developing Rest-Based Microservices with Spring-Boot

License: Apache License 2.0

Java 94.86% Dockerfile 5.14%

spring-boot-microservices-best-practices's Introduction

spring-boot-microservices-best-practices

Best Practices for Developing Rest-Based Microservices with Spring-Boot A service offers REST APIs for managing/consuming orders.

Owner

  • Ehab Qadah

Tools and Technologies Used

  • Spring Boot -2.4.0-SNAPSHOT

  • Maven

  • MYSQL

  • Swagger

  • Flywaydb

  • Hibernate 5

  • lighthouse-orm-commons

  • Docker and Docker Compose

Check out here for more details.

APIs documentation

LOCAL

Management APIs

actuator

Local MySql Setup

Setup a local mysql container:

Create local_user user and empty schema local_db by executing the following SQL commands:

CREATE USER IF NOT EXISTS  'local_user'@'%' IDENTIFIED BY 'P@ssword1';
CREATE DATABASE IF NOT EXISTS local_db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON local_db.* TO 'local_user'@'%';

Docker Image

export IMAGE_NAME="<image-name>"
export GIT_COMMIT="<git-commit>"

docker build -t $IMAGE_NAME --build-arg GIT_COMMIT=$GIT_COMMIT  --build-arg ENVIRONMENT=local   .

Deployment

The micro-service can be deployed on a Kubernetes cluster using the DEPLOYMENT pipeline.

spring-boot-microservices-best-practices's People

Contributors

ehabqadah 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.