Before you begin, ensure you have met the following requirements:
- You have installed Docker.
To access private repositories and perform actions on behalf of your account, you'll need a GitHub Personal Access Token.
- Go to your GitHub account settings.
- Navigate to Developer settings > Personal access tokens.
- Click Generate new token. Use Classic token.
- Give your token a descriptive name.
- Select the permissions
delete:packages, repo, write:packages, read:packages - Click Generate token and copy the token.
Using your Personal Access Token, log in to GitHub from your terminal:
echo "your_github_pat" | docker login ghcr.io -u your_github_username --password-stdinClone the repository and navigate to the project directory:
git clone https://github.com/tuky191/happychain-assignment.git
cd happychain-assignment
docker compose build
docker compose up -ddocker logs demo -fContracts were developed in separate repository
- Clone the repo
git clone https://github.com/tuky191/happychain-contracts - Install dependencies
npm install - Run tests
npx hardhat test