- Update the code.
- Add, update, or fix tests.
- Run
cargo build && cargo test
.
- Build the Docker image:
docker build -t minswap-csl .
- Run Docker Compose:
docker compose up -d --build
- Execute into the Docker container to build the Node.js SDK:
# Execute into the Docker container
docker exec -it ${CONTAINER_ID} /bin/bash
# Build Rust
cargo build
# Change directory back to root
cd ..
# Install npm dependencies
npm install
# Build Node.js SDK
npm run rust:build-nodejs
# Exit Docker
- The final build is stored on your local machine at
./rust/pkg
due to mounting .:/usr/src/app
.