git clone [email protected]:wenex-org/client-backend.gitcd client-backend
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
- Manually Start Up and Running Client
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/client-backend:latest .before using docker solution.
docker-compose --profile platform-seed up
docker-compose --profile platform-raise up
# docker-compose --profile platform-clean upnpm run platform:seed
npm run platform:raise
# npm run platform:cleanManual:
npm run coworkers:seed
npm run coworkers:raise
# npm run coworkers:cleanUsing Docker:
docker-compose --profile coworkers-seed up
docker-compose --profile coworkers-raise up
# docker-compose --profile coworkers-clean upNote: run
docker build -t wenex/client-backend:latest .before using docker solution.
Start all services at once
docker-compose --profile client up -dStart each service you want using the following command
# Gateway
npm run start:dev gateway
#npm run start:debug[2] gateway
# Services
npm run start:dev services
#npm run start:debug[2] services
# Workers
npm run start:dev workers
#npm run start:debug[2] workersServe static files located at the assets directory
npm run serve:static