π Quickstart
Clone the repository and install dependencies:
git clone https://github.com/AlexisHerrera/cryptotrophy-platform
cd cryptotrophy-platform
yarn install
Build and run the platform locally:
# Build project
yarn build
# Start a local Hardhat blockchain node
yarn hardhat:chain
# Deploy contracts to the local chain
yarn hardhat:deploy
# Start frontend and backoffice apps (Next.js)
yarn start
# Start the Ponder indexer in development mode
yarn ponder:dev
# Run tests
yarn test
ποΈ Monorepo Structure
CryptoTrophy uses a monorepo architecture, with specialized packages for each domain:
crypto-trophy/
β
βββ packages/
β βββ hardhat/ # Smart contracts & deployment scripts
β βββ contracts/ # Main contracts with business logic
β βββ nextjs/ # Web frontend (Next.js)
β βββ backoffice/ # Admin backoffice for organizations
β βββ trophy-app/ # End user application
β βββ ponder/ # Blockchain event indexer
β
βββ circuits/ # ZK-SNARK circuits (Circom)
βββ docker-compose.yml # Orchestrates local dev services