{"id":46278083,"url":"https://github.com/tiesen243/qianyu","last_synced_at":"2026-04-17T01:05:01.879Z","repository":{"id":342073598,"uuid":"1171832146","full_name":"tiesen243/qianyu","owner":"tiesen243","description":"A minimal and modern React Native starter template designed to provide a clean, scalable foundation for mobile applications.","archived":false,"fork":false,"pushed_at":"2026-04-05T06:55:35.000Z","size":1824,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-05T08:28:39.695Z","etag":null,"topics":["githib-actions","heroui-native","react-native-cli","react-navigation"],"latest_commit_sha":null,"homepage":"https://qianyu-web-prod.tiesen.workers.dev/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tiesen243.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-03T16:53:03.000Z","updated_at":"2026-04-05T06:55:15.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tiesen243/qianyu","commit_stats":null,"previous_names":["tiesen243/qianyu"],"tags_count":64,"template":false,"template_full_name":null,"purl":"pkg:github/tiesen243/qianyu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiesen243%2Fqianyu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiesen243%2Fqianyu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiesen243%2Fqianyu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiesen243%2Fqianyu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiesen243","download_url":"https://codeload.github.com/tiesen243/qianyu/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiesen243%2Fqianyu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31910584,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["githib-actions","heroui-native","react-native-cli","react-navigation"],"created_at":"2026-03-04T05:03:17.652Z","updated_at":"2026-04-17T01:05:01.861Z","avatar_url":"https://github.com/tiesen243.png","language":"TypeScript","readme":"# Qianyu\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/tiesen243/qianyu/releases?q=api\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/package-json/v/tiesen243/qianyu?filename=apps/api/package.json\u0026label=version@api\" alt=\"Version API\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/tiesen243/qianyu/releases?q=desktop\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/package-json/v/tiesen243/qianyu?filename=apps/desktop/package.json\u0026label=version@desktop\" alt=\"Version Desktop\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/tiesen243/qianyu/releases?q=web\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/package-json/v/tiesen243/qianyu?filename=apps/web/package.json\u0026label=version@web\" alt=\"Version Web\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/tiesen243/qianyu/releases?q=mobile\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/package-json/v/tiesen243/qianyu?filename=apps/mobile/package.json\u0026label=version@mobile\" alt=\"Version Mobile\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/tiesen243/qianyu\" alt=\"License\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/tiesen243/qianyu/actions/workflows/ci.yml\"\u003e\n    \u003cimg src=\"https://github.com/tiesen243/qianyu/actions/workflows/ci.yml/badge.svg\" alt=\"CI\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/tiesen243/qianyu/actions/workflows/release.yml\"\u003e\n    \u003cimg src=\"https://github.com/tiesen243/qianyu/actions/workflows/release.yml/badge.svg\" alt=\"Release\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/tiesen243/qianyu/actions/workflows/publish.yml\"\u003e\n    \u003cimg src=\"https://github.com/tiesen243/qianyu/actions/workflows/publish.yml/badge.svg\" alt=\"Publish\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Overview\n\nQianyu is a modern monorepo containing a web application and a mobile application, sharing optimized developer tooling and CI/CD pipelines.\n\nThe monorepo contains 2 main applications:\n\n- **Web App** (`apps/web`): Built with React Router, with CI configured for automated deployment to Cloudflare Workers.\n- **Mobile App** (`apps/mobile`): A Bare React Native application with CI configured for automated APK builds.\n\n## Tech Stack\n\n- **Web App**: React Router, Cloudflare Workers\n- **Mobile App**: Bare React Native, React Navigation, HeroUI Native\n- **Styling**: Tailwind CSS (Utility-first styling approach for rapid UI development)\n- **Language**: TypeScript for safer and more maintainable code\n- **Package Manager**: Bun (Fast JavaScript runtime for development and production)\n- **Tooling**: Oxlint \u0026 Oxfmt for high-performance linting and formatting\n- **CI/CD**: GitHub Actions for automated builds, deployments, and releases\n\n## Getting Started\n\n### Prerequisites\n\nMake sure you have the following installed:\n\n- [Bun](https://bun.com/)\n- [Android SDK](https://developer.android.com/studio) (for Mobile App)\n- [JDK 17 or higher](https://www.oracle.com/java/technologies/javase-jdk17-downloads.html) (for Mobile App)\n\n### Installation\n\nClone the repository and install dependencies:\n\n```bash\ngit clone https://github.com/tiesen243/qianyu.git\ncd qianyu\nbun install\n```\n\n### Development\n\n#### Web App\n\nTo start the web development server:\n\n```bash\ncd apps/web\nbun run dev\n```\n\n#### Mobile App\n\nTo start the Metro bundler and run the app on an Android emulator or device:\n\n```bash\ncd apps/mobile\nbun run start\n# In another terminal:\nbun run android\n```\n\n## Deployment \u0026 Workflows\n\nThis project uses **GitHub Actions** to automate code quality checks, releases, web deployments, and APK builds.\n\n### CI/CD Pipelines\n\n1. **CI (`ci.yml`)**: Runs on every push and pull request to ensure code quality:\n   - Code formatting check (Oxfmt)\n   - Linting (Oxlint)\n   - Type checking (TypeScript)\n\n2. **Web App Deployment**:\n   - Automated deployment to **Cloudflare Workers** on merge/push to the main branch.\n   - PR Preview deployments via `pr-preview.yml`.\n\n3. **Mobile App Build (`build-apk.yml`)**:\n   - Triggered automatically after a release is created.\n   - Builds the Android APK and uploads the artifact to the GitHub Release.\n\n4. **Release (`release.yml`)**: Handles versioning and release management:\n   - Generates changelog using Changesets.\n   - Creates a GitHub Release.\n\n### Configuring Mobile Keystore for GitHub Actions\n\nIf you are setting up the Android build for the first time, you need to configure GitHub Secrets for the APK build:\n\n1. Generate a keystore:\n\n   ```bash\n   keytool -genkeypair -v -storetype PKCS12 \\\n   -keystore my-release-key.keystore \\\n   -alias my-key-alias \\\n   -keyalg RSA -keysize 2048 -validity 10000\n   ```\n\n2. Base64 encode the keystore:\n\n   ```bash\n   base64 my-release-key.keystore \u003e my-release-key.keystore.base64\n   ```\n\n3. Set the following repository secrets:\n\n- `ALCHEMY_PASSWORD`: Your Alchemy Password (generated by `openssl rand -base64 32`)\n- `ALCHEMY_STATE_TOKEN`: Your Alchemy State Token for Cloudflare Workers (generated by `openssl rand -base64 32`)\n- `CLOUDFLARE_ACCOUNT_ID`: Your Cloudflare Account ID\n- `CLOUDFLARE_API_TOKEN`: Your Cloudflare API Token with permissions: `Workers Agents Configuration:Edit`, `Containers:Edit`, `Workers Observability:Edit`, `Workers Builds Configuration:Edit`, `Cloudflare Pages:Edit`, `Workers R2 Storage:Edit`, `Workers Tail:Read`, `Workers KV Storage:Edit`, `Workers Scripts:Edit`, `Account Settings:Read`\n- `CLOUDFLARE_EMAIL`: Your Cloudflare Account Email\n- `CORS_ORIGINS`: Comma-separated list of allowed CORS origins for the API\n- `PAT_TOKEN`: Your GitHub Personal Access Token with `repo` and `workflow` permissions\n- `RN_API_URL`: The API URL of your deployed backend for the mobile app\n- `RN_PREFIX` and `RN_SCHEME`: The URL scheme and prefix for deep linking in the mobile app\n- `RN_UPLOAD_KEY_ALIAS`: The alias of the key in your keystore\n- `RN_UPLOAD_STORE_BASE64`: The base64-encoded content of your keystore file\n- `RN_UPLOAD_STORE_PASSWORD`: The password for your keystore\n\n4. Generate SHA256 fingerprint of your keystore (optional, for deep linking):\n\n   ```bash\n   keytool -list -v -keystore my-release-key.keystore\n   ```\n\n   Then copy the SHA256 fingerprint and add it to `apps/web/public/.well-known/assetlinks.json` for Android deep linking.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiesen243%2Fqianyu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiesen243%2Fqianyu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiesen243%2Fqianyu/lists"}