git clone git@github.com:wenex-org/platform.gitcd platform cp .env.example .env # Clone git submodules npm run git:clone npm run git checkout main # Install node dependencies pnpm install --frozen-lockfileNext Step:
- Add Remote (Optional)
- Start Essential Utilities
- DB Seeding and Initialization
- Start Up and Running using Docker
- Start Up and Running for E2E Tests
- Manually Start Up and Running Wenex
npm run git:remote:add staging example.comNote: stage must be
stagingorproduction.
docker-compose -f docker/docker-compose.yml up -d # The other `yml` files in `docker` directory are optionalNote: run
docker build -t wenex/platform:latest .before using docker solution.
# MongoDB docker-compose --profile db-seed up # Elasticsearch docker-compose --profile db-index up # Clean All Database #docker-compose --profile db-clean up # MinIO Initialization docker-compose --profile storage-init up # Set EMQX Configuration docker-compose --profile utility-init up# MongoDB npm run db:seed:e2e # Elasticsearch npm run db:index:e2e # Clean All Database #npm run db:clean:e2e # MinIO Initialization npm run storage:init # Set EMQX Configuration npm run utility:init# MongoDB npm run db:seed # Elasticsearch npm run db:index # Clean All Database #npm run db:clean # MinIO Initialization npm run storage:init # Set EMQX Configuration npm run utility:initNote: run
docker build -t wenex/platform:latest .before using docker solution.
Start all services at once, gateway and the other services
docker-compose --profile services up -dNote: to start workers need to configure
kafka-connectwith the following command.
docker-compose --profile kafka-connect upStart all workers using the following command
docker-compose --profile workers up -dOpen one of the kgx or gnome-terminal terminal and run the following command in the platform directory
# Specify the services in order that you want to start npm run script:start:e2e auth domain context essential identity special gateway ...Before running the workers and after running services you should config the kafka-connect using the following command
npm run script:kafka-connect:e2eStart the workers using the previously npm run script:start:e2e watcher observer preserver dispatcher logger ... npm script command
Start each service you want using the following command
npm run start:dev <service-name> #npm run start:debug[2] <service-name>Configure kafka-connect with the following command
npm run script:kafka-connectStart the workers using the previously used command to starting services.