Thank you for your interest in contributing to Auroras Explorer! This guide will help you get started.
-
Fork the repository and clone your fork:
git clone https://github.com/<your-username>/prun-planner.git cd prun-planner
-
Install dependencies:
bun install
src/
├── components/ # Reusable UI components
├── hooks/ # Custom React hooks
├── i18n/ # Internationalization (Chinese & English)
├── lib/ # Shared utilities
├── routes/ # TanStack Router page routes
├── server/ # Hono API server
└── assets/ # Static assets
scripts/ # Database migrations and CLI tools
tests/ # Test suites
- Runtime: Bun
- Frontend: React 18, TanStack Router, TanStack Query, Tailwind CSS 4, Shadcn UI
- Backend: Hono
- Database: PostgreSQL with Knex query builder
- Linting/Formatting: Biome
This project uses Biome for linting and formatting. Run the formatter before committing:
bun run biome check --write . srcWrite tests alongside the code they cover. Run the test suite with:
bun run testThe project supports Chinese and English. When adding user-facing strings, add translations to the locale files under src/i18n/.
- Write clear, concise commit messages.
- Use conventional commit format when possible (e.g.,
feat:,fix:,docs:,refactor:). - Keep commits focused — one logical change per commit.
-
Create a feature branch from
main:git checkout -b feat/your-feature
-
Make your changes and ensure:
- The code compiles without errors (
bun run build) - Tests pass (
bun run test) - Linting passes (
bun run biome check .)
- The code compiles without errors (
-
Push your branch and open a Pull Request against
main. -
In your PR description, include:
- A summary of the changes
- Any relevant context or motivation
- Screenshots for UI changes
If you find a bug or have a feature request, please open an issue with:
- A clear title and description
- Steps to reproduce (for bugs)
- Expected vs actual behavior
- Screenshots if applicable
By contributing, you agree that your contributions will be licensed under the same license as the project.