Setup Constellation DAG Dev Env for Metagraph Hackathon

Macbook M1 16GB
Guideline to setup Constellation DAG development environment for Metagraph Hackathon which initials on 29th July 2024 for Goriant team
Preparation steps
Setup Docker Desktop version >= 26.0.0
Setup jq & yq
brew install jq brew install yq
Allocate 8GB Ram for your Docker Desktop
- Preferences -> Resources -> Memory : 8GB
Node v16.20.2 - can setup with nvm
brew install nvm nvm install v16.20.2 nvm use v16.20.2
Config git for fetching registry indexes and git dependencies => ~/.bashrc or ~/.zshrc
export CARGO_NET_GIT_FETCH_WITH_CLI=true
Increase Git Buffer Size
git config --global http.postBuffer 524288000
Install rustc version >= 1.63.0
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Setup Scalar and CS
JDK 17 download and setup - https://download.oracle.com/java/17/archive/jdk-17.0.11_macos-x64_bin.dmg
Install
cs
- follow this instruction https://get-coursier.io/docs/cli-installationcurl -fL https://github.com/VirtusLab/coursier-m1/releases/latest/download/cs-aarch64-apple-darwin.gz | gzip -d > cs chmod +x cs ./cs setup
Create Github Access Token - follow this instruction https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens or you can go direct to the link below
Generate new token
Public Repositories (read-only)
Setup Constellation Dev Env
Follow this instruction https://docs.constellationnetwork.io/sdk/guides/quick-start/
cargo install argc
cs install giter8
Working directory
mkdir -p ~/Development/hackathon/metagraph cd ~/Development/hackathon/metagraph
Clone the Euclid Development Environment project
git clone https://github.com/Constellation-Labs/euclid-development-environment cd euclid-development-environment
Edit the
github_token
variable within theeuclid.json
file with your Github Access Token generated previously. Update theproject_name
field to Goriant.Remove .git for Detaching your project from the source repo then
scripts/hydra install scripts/hydra install-template --list ################################## INSTALL TEMPLATE ################################## Fetching templates... Available templates custom-transaction-validation nft reward-api social voting-poll water-and-energy-usage
We will choose one of them then run install-template command
Build
Build your network clusters with hydra
scripts/hydra build
Subscribe to my newsletter
Read articles from Lam Le directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
