Coder Social home page Coder Social logo

dongbinghua / alibabacloud-microservice-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aliyun/alibabacloud-microservice-demo

0.0 0.0 0.0 5.08 MB

An Alibaba Cloud native microservice demo powered by Apache Dubbo and Spring Cloud Alibaba

License: Apache License 2.0

Shell 1.47% JavaScript 4.16% Python 0.66% Java 68.87% CSS 0.34% HTML 21.72% Dockerfile 2.79%

alibabacloud-microservice-demo's Introduction

Introduction

This is a demo project to showcase running microservices on Alibaba Cloud.

This demo is powered by the following projects and products:

  • Apache Dubbo for Remote Procedure Call
  • Spring Cloud Alibaba for Service to Service Call
  • Nacos for Service Discovery and Configuration management
  • Alibaba Cloud EDAS for deployment and hosting
  • Alibaba Cloud ARMS for monitoring
  • Alibaba Cloud SAE for deployment and hosting without being aware of the underlying infrastructure.

Architecture

This project contains the following applications (more applications are on the way):

  • frontend: A Java application with SpringMVC and thymeleaf as template engine.
  • cartservices: A Java application that provides basic operations to add products to shopping carts, which is powered by Apache Dubbo.
  • productservice: A Java application that provies basic operations to list all the products and query product by ID, which is powered by Spring Cloud Alibaba.

Build

Build docker image using docker-compose

You can use docker-compose to build docker images:

docker-compose build

Build docker image using scripts

You need to go to the src directory, for each sub module, there is a build.sh file, just run it to build the docker image for each module.

./build.sh

Deploy

Deploy with docker-compose

This project can be deployed to docker with the following command

docker-compose -f docker-compose.yml up

If you want to undeploy, use the following command

docker-compose -f docker-compose.yml down

Deploy to Kubernetes cluster

This project can be deployed to Kubernetes cluster with the following command:

cd kubernetes-manifests/
for i in *.yaml; do kubectl apply -f $i; done

If you want to delete the deployment, please use the following command:

for i in *.yaml; do kubectl delete -f $i; done

Deploy with helm

This project can be deployed to Kubernetes cluster with helm chart:

helm install ./helm-chart  --name  microservice-demo

If you want to delete the deployment with helm, use the following command:

helm delete microservice-demo

Collaborator

If you are a collaborator, please read the Collaborator to prepare for development.

Credit

This project is originiated from GoogleCloudPlatform/microservice-demo

alibabacloud-microservice-demo's People

Contributors

bdqfork avatar claindoc avatar dependabot[bot] avatar flystar32 avatar icedsoul avatar kuangcp avatar lebw avatar lexburner avatar lym-ifae avatar panxiaojun233 avatar ralf0131 avatar robberphex avatar satjd avatar steverao avatar sunxia0 avatar tdy218 avatar trevorlink 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.