A micro service version of cola architecture.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
This project is a scaffold for a microservice version of a Maven project built on the COLA structure, allowing you to quickly set up a development environment using Maven Archetype.
- JDK 17
- Maven
- MySQL 8.0 (optional)
- Redis 7.0 (optional)
- Nacos v2.3.2 (optional)
- RocketMQ 5.1.4 (optional)
- Clone the repo
git clone https://github.com/hnzhrh/micro-service-cola.git
- Install the archetype to local repo
cd ./micro-service-cola-archetype mvn install
Now you can use this archetype to create the new project.
There are two methods for generating the archetype:
- Using the Maven Archetype Plugin.
- Through the web user interface (UI).
Before creating your project, please replace ${groupId}
, ${artifactId}
, ${package}
, and ${version}
with your own values.
mvn archetype:generate -DgroupId=${groupId} -DartifactId=${artifactId} -Dversion=1.0.0 -Dpackage=${package} -DarchetypeArtifactId=micro-service-cola-archetype -DarchetypeGroupId=com.erpang.scaffold -DarchetypeVersion=1.0.0 -DarchetypeCatalog=local
- Go to directory
- Config the
output-dir
inapplication.yaml
output-dir: Your output dir path.
- Run the application.
- Go to http://localhost:8180
- Init the project module
- Integrate Spring Boot
- Integrate COLA
- Integrate middleware
- MySQL
- Redis
- RocketMQ
- Integrate Spring cloud alibaba.
- Nacos
- Config
- Discovery
- Sentinel
- Seata
- Nacos
- Schedule tasks
- Spring schedule tasks.
- Integrate monitor
- Spring Boot Actuator
- Prometheus
- Integrate observability platform
- Skywalking
- Integrate development tools
- Swagger and Knife4j
- Generator
- Maven archetype
- Generator
- Implement a JSON-configurable strategy for generating directory structures.
- Implement a configurable strategy for generating template files.
- Support more archetype.
- File download.
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Erpang - [email protected]
Project Link: https://github.com/hnzhrh/micro-service-cola
- COLA
- Spring cloud alibaba