genlayer-project-boilerplate
애플리케이션genlayerlabs/genlayer-project-boilerplate
GenLayer 스마트 컨트랙트 프로젝트 템플릿, 프론트엔드 및 테스트 도구 포함.
개요
바로 시작할 수 있는 GenLayer 예제 프로젝트로, 축구 승부 예측 게임을 구현했습니다. Web/LLM을 통합한 Python 스마트 컨트랙트, 직접/통합 테스트 스위트, Next.js 15 프론트엔드 및 CI 파이프라인이 포함되어 있어 GenLayer 개발의 시작점으로 적합합니다.
README 미리보기
# Sample GenLayer project\n[](https://opensource.org/license/mit/)\n[](https://discord.gg/8Jm4v89VAu)\n[](https://t.me/genlayer)\n[](https://x.com/GenLayer)\n[](https://star-history.com/#yeagerai/genlayer-js)\n\n## About\nThis project includes the boilerplate code for a GenLayer use case implementation, specifically a football bets game.\n\n## What's included\n- An example intelligent contract (Football Bets) with web access and LLM integration\n- **Direct mode tests** — fast, in-memory unit tests with web/LLM mocking (~ms per test)\n- **Integration tests** — full end-to-end tests against GenLayer Studio\n- **Contract linting** — static analysis to catch common contract issues before deployment\n- **CI pipeline** — GitHub Actions workflow for linting and direct tests\n- A production-ready Next.js 15 frontend with TypeScript, TanStack Query, and Radix UI\n- Configuration file template and deployment scripts\n\n## Requirements\n- Python >= 3.12\n- [GenLayer CLI](https://github.com/genlayerlabs/genlayer-cli) globally installed: `npm install -g genlayer`\n- GenLayer Studio (for integration tests and deployment): Install from [Docs](https://docs.genlayer.com/developers/intelligent-contracts/tooling-setup#using-the-genlayer-studio) or use the hosted [GenLayer Studio](https://studio.genlayer.com/)\n\n## Project Structure\n\n```\ncontracts/ # Python intelligent contracts\ntests/\n direct/ # Fast in-memory tests (no Studio required)\n test_create_bet.py # Bet creation logic\n test_resolve_bet.py # Bet resolution with web/LLM mocks\n test_views.py # Read-only view methods\n integration/ # Full tests against GenLayer Studio\n test_football_bets.py\n fixtures.py # Expected state fixtures\nfrontend/ # Next.js 15 app (TypeScript, TanStack Query, Radix UI)\ndeploy/ # TypeScript deployment scripts\ngltest.config.yaml # Test runner network configuration\npyproject.toml
FAQ (1)
문제 해결페이지 제목이 여전히 "Football Market"으로 표시되는 문제를 어떻게 해결하나요?
문제 해결
페이지 제목이 여전히 "Football Market"으로 표시되는 문제를 어떻게 해결하나요?커밋 65db4dd의 수정 사항이 포함되도록 프로젝트를 업데이트하세요. git fetch origin && git pull origin main을 실행하거나, git cherry-pick 65db4dd로 해당 커밋만 적용하세요. 수동으로 편집하는 경우 grep -R "Football Market" .으로 코드베이스를 검색하여 하드코딩된 제목을 올바른 값으로 교체한 다음 앱을 다시 빌드/재시작하세요.