We welcome contributions! Please follow these guidelines to ensure a smooth workflow.
-
Clone the repository
git clone https://github.com/your-org/prophetbase.git cd prophetbase -
Install Dependencies
npm install # Root cd frontend && npm install
-
Environment Variables Copy
.env.exampleto.envinfrontend/andhardhat/directories. Required:NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID,PRIVATE_KEY(for deploy). -
Run Local Dev
# Terminal 1: Frontend cd frontend npm run dev
- Tailwind CSS: Use utility classes. Avoid custom CSS unless necessary in
globals.css. - Theme: Stick to the "Base Blue" variables (
bg-blue-600, etc.). - Dark Mode: Always verify components in dark mode (
dark:classes).
- Use Functional Components with TypeScript interfaces.
- Place reusable components in
frontend/components/. - Use
lucide-reactorheroiconsfor icons.
- Run component tests:
npm run test - Run E2E tests:
npx playwright test
- Create a new branch:
feature/my-featureorfix/issue-id. - Commit changes with clear messages.
- Ensure all tests pass.
- Open a PR describing changes and attaching screenshots for UI work.
MIT License. See LICENSE for details.