Build, Run and Configure micro‐services in local development environment - Texera/texera GitHub Wiki
This Document is aim to provide a instruction on how to setup the local development environment for developing and deploying the core/micro-services
.
Prerequisite
This document requires you to finish all the setup of Texera local development environment described in https://github.com/Texera/texera/wiki
.
micro-services
?
What is core/micro-services
is a sbt-managed project added by the PR https://github.com/Texera/texera/pull/2922. The ongoing code separation effort will gradually migrate all the services in core/amber
to core/micro-services
.
How to directly build and run the micro-services directly
If you just want to run some services under micro-services
, you can use some provided shell scripts.
WorkflowCompilingService
cd texera/core
# make sure to give scripts the execution permission
chmod +x scripts/build-workflow-compiling-service.sh
chmod +x scripts/workflow-compiling-service.sh
# Build the WorkflowCompilingService
scripts/build-workflow-compiling-service.sh
# Run the WorkflowCompilingService
scripts/workflow-compiling-service.sh
How to set up the development environment
As there are many sub sbt projects under micro-services
, Intellij is the most suitable IDE for setting up the whole environment
Use Intellij (Most Recommended)
- Open the folder
texera/core/micro-services
throughOpen Project
in Intellij
Once you open it, Intellij will auto-detect the sbt setting and start to load the project. After loading you should see the sbt tab, which has the micro-services
as the root project and several other services as the sub-projects:
- Run
sbt clean compile
command in foldercore/micro-services
. This command will compile everything undermicro-services
and generate proto-specified codes.