Cursor rule
.cursor/rules/file-structure.mdcFile structure guidelines for NOWCRM
Cursor rules
Quality
70/100
Scores the file, not the repository.Length
316 words
8 headings · 4 code blocksRepository
26
— · pushed 116 days agoLast changed
3 days ago
First indexed 3 days ago.123456# File Structure Guidelines78## Directory Organization9```10apps/nowcrm/11├── components/ # Reusable UI components12├── app/ # Route components13├── i18n/ # I18N configuration14├── lib/ # Handling server actions and different utils15├── hooks/ # Custom hooks16├── types/ # Type definitions17└── messages/ # I18N jsons for each language1819apps/composer/src/20├── api/ # Api routes21├── api-docs/ # Handling api routes setup22├── common/ # Common and reused utils23├── lib/ # Functions, types and workers24└── scheduler/ # Scheduler which are integrated with composer calendar2526apps/journeys/src/27├── api/ # Handling webhooks api routes for journeys28├── common/ # Common and reused utils29├── consumers/ # All journeys consumers setup30├── cron/ # Cron jobs which acts as a producer to create new jobs31├── jobs/ # All job configuration32├── lib/ # Functions, types and workers33└── rabbitmq/ # Rabbitmq setup34```3536## File Naming37- **kebab-case** for all files and directories38- **Descriptive suffixes** for clarity39```40// ✅ Correct naming41user.tsx42user.component.tsx43user.service.ts44user.test.tsx45```4647## Index Files & Barrel Exports48```typescript49// ✅ Clean barrel exports in index.ts50export { UserCard } from './user-card.component';51export { UserList } from './user-list.component';52export type { UserCardProps, UserListProps } from './types';5354// ✅ Usage - clean imports55import { UserCard, UserList } from '@/components/user';56```5758## File Size Guidelines59- **Components**: Under 300 lines if possible60- **Services**: Under 500 lines if possible61- **Extract logic** into hooks/utilities when files grow large62- **Use composition** over large monolithic components6364## Configuration Files6566### Project Configuration67```68.vscode/ # VSCode settings69├── settings.json70├── extensions.json71└── launch.json7273.github/ # GitHub workflows74├── workflows/75└── templates/7677.cursor/ # Cursor rules78├── rules/79└── environment.json80```8182### Build Configuration83- Keep build configs in root or package directories84- Use consistent naming for config files85- Comment complex configurations86- Version control all configuration files
Also in nowtec/nowCRM
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 |
|---|---|---|---|---|---|
| nowtec/nowCRM.cursor/rules/architecture.mdc · 26 | Cursor rules | arch | 54/100 | 3 days ago | |
| nowtec/nowCRM.cursor/rules/code-style.mdc · 26 | Cursor rules | lint-formatstylearchdocs | 62/100 | 3 days ago | |
| nowtec/nowCRM.cursor/rules/react-general-guidelines.mdc · 26 | Cursor rules | archuiperformancedo-not | 61/100 | 3 days ago | |
| nowtec/nowCRM.cursor/rules/readme.mdc · 26 | Cursor rules | testlint-formatarchtypes+2 | 73/100 | 3 days ago | |
| nowtec/nowCRM.cursor/rules/testing-guidelines.mdc · 26 | Cursor rules | setupteststylearch+3 | 73/100 | 3 days ago | |
| nowtec/nowCRM.cursor/rules/translations.mdc · 26 | Cursor rules | stylearchagent-behaviour | 62/100 | 3 days ago | |
| nowtec/nowCRM.cursor/rules/typescript-guidelines.mdc · 26 | Cursor rules | styletypesui | 58/100 | 3 days ago | |
| nowtec/nowCRMCLAUDE.md · 26 | CLAUDE.md | buildstyledeployment | 21/100 | 3 days ago |
Diff against .cursor/rules/architecture.mdc Diff against .cursor/rules/code-style.mdc Diff against .cursor/rules/react-general-guidelines.mdc Diff against .cursor/rules/readme.mdc Diff against .cursor/rules/testing-guidelines.mdc Diff against .cursor/rules/translations.mdc Diff against .cursor/rules/typescript-guidelines.mdc Diff against CLAUDE.md
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 |
