Musicfun - 状态管理展示
Information on launching projects can be found in the README.md of each individual repository.
youtube/rtk-query - youtube lessons: rtk-query
youtube/tanstack-query-router-fsd - youtube lessons: tanstack-query
apps/musicfun-ui-vanilla - full project html/css/storybook vanilla without ui libraries
apps/musicfun-tanstack-query - full project with tanstack query
apps/musicfun-rtk-query - full project with rtk-query
Run the following command in the project root (this will install dependencies for all apps and packages):
pnpm i
Then build musicfun-api-sdk
pnpm build:sdk
️⚠️ Note: Some scripts may not be cross-platform compatible:
"scripts": {
"clean": "rm -rf dist",
"build": "pnpm run clean && tsc"
}
If so, try a simpler alternative command:
pnpm build:sdk:simple
pnpm start:musicfun-tanstack
pnpm start:musicfun-rtk
pnpm start:musicfun-nextjs
| Category | Recommended Format | Example |
|---|---|---|
| Components | PascalCase |
UserCard.tsx |
| Hooks | camelCase |
useAuth.ts |
| Utilities (utils) | kebab-case |
format-date.ts, validate-email.ts |
| Redux Slice/State | kebab-case |
auth-slice.ts, user-slice.ts |
| API files | kebab-case |
playlists-api.ts, auth-api.ts |
| Types/Interfaces | kebab-case |
user.types.ts, auth.types.ts |
| Services | kebab-case |
auth-service.ts, user-service.ts |
| Mocks (mock data) | kebab-case |
user-mocks.ts, playlist-mocks.ts |
Please refer to our Contributing guide to learn about our development process, how to propose bugfixes
暂无开放 Issues,或尚未同步最近议题。