Cursor rule
.cursor/rules/frontend-patterns.mdcFrontend — auth contract та орієнтири (основний стек визначає інший розробник)
Cursor rules
Quality
39/100
Scores the file, not the repository.Length
196 words
3 headings · 0 code blocksRepository
3
— · pushed 103 days agoLast changed
3 days ago
First indexed 3 days ago.123456# Frontend — buero.de78Frontend stack and detailed UI conventions are defined by the **frontend developer**. This rule documents the **auth contract** and integration points the backend provides; backend owner is responsible for correct auth setup and CORS so the frontend can integrate.910## Auth contract (для інтеграції з бекендом)1112- **Tokens in cookie only:** `access_token`, `refresh_token` (names and options in docs/auth-spec.md, docs/auth-config.md). Do not store tokens in localStorage (XSS). Send cookies with requests; optional fallback: `Authorization: Bearer <access_token>`.13- **API base URL and credentials:** use one HTTP client with baseURL and **withCredentials: true** for cookie. On 401: try refresh (POST /auth/refresh with refresh cookie), then redirect to login if refresh fails.14- **UI languages:** EN / DE (users.language or Accept-Language); architecture requires EN/DE support.1516## Орієнтири (з architecture)1718- **Roles:** student vs teacher; student — courses, progress, lesson request; teacher — CRUD courses/materials, lesson_requests.19- **Content access:** show course list and materials only when user has active subscription or trial; otherwise CTA to Placement Test / subscription.20- **UI/UX:** minimal design, focus on learning scenarios; mobile-friendly; immediate feedback in quiz.2122Concrete stack (React/Vue, UI library) and full frontend rules are set by the frontend developer.23
Also in annnsvm/buro-de
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| annnsvm/buro-de.cursor/rules/api-patterns.mdc · 3 | Cursor rules | styleapi | 48/100 | 3 days ago | |
| annnsvm/buro-de.cursor/rules/auth-and-roles.mdc · 3 | Cursor rules | security | 39/100 | 3 days ago | |
| annnsvm/buro-de.cursor/rules/coding-style.mdc · 3 | Cursor rules | lint-format | 48/100 | 3 days ago | |
| annnsvm/buro-de.cursor/rules/database-patterns.mdc · 3 | Cursor rules | database | 52/100 | 3 days ago | |
| annnsvm/buro-de.cursor/rules/git-workflow.mdc · 3 | Cursor rules | gitagent-behaviour | 25/100 | 3 days ago | |
| annnsvm/buro-de.cursor/rules/project-structure.mdc · 3 | Cursor rules | no sections | 44/100 | 3 days ago | |
| annnsvm/buro-de.cursor/rules/stripe-and-access.mdc · 3 | Cursor rules | no sections | 39/100 | 3 days ago | |
| annnsvm/buro-de.cursor/rules/testing-api.mdc · 3 | Cursor rules | testtesting-strategydatabase | 48/100 | 3 days ago |
Diff against .cursor/rules/api-patterns.mdc Diff against .cursor/rules/auth-and-roles.mdc Diff against .cursor/rules/coding-style.mdc Diff against .cursor/rules/database-patterns.mdc Diff against .cursor/rules/git-workflow.mdc Diff against .cursor/rules/project-structure.mdc Diff against .cursor/rules/stripe-and-access.mdc Diff against .cursor/rules/testing-api.mdc
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 3 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago |
