Skip to content

Conversation

Copy link

Copilot AI commented Nov 19, 2025

Establishes production-ready folder structure for the InterviewMint frontend following React/TypeScript best practices.

Structure

Created 12 domain-organized directories with index files for clean exports:

  • components/ - UI components (common, ui, forms subdirs)
  • features/ - Feature modules with colocated logic
  • pages/ - Route-level components
  • hooks/ - Custom React hooks
  • services/ - API clients and integrations (api, storage, analytics subdirs)
  • store/ - Zustand state management
  • types/ - Shared TypeScript definitions
  • utils/ - Pure utility functions
  • constants/ - Application constants
  • config/ - Third-party library configuration
  • layouts/ - Page layout wrappers
  • styles/ - Global styles and theme

Documentation

Each directory includes README.md with:

  • Naming conventions
  • Code examples
  • Best practices

Root src/README.md documents architecture principles and import patterns.

Developer Experience

Added path aliases for cleaner imports:

// tsconfig.app.json + vite.config.ts
{
  "baseUrl": ".",
  "paths": {
    "@/*": ["./src/*"]
  }
}

// Enables
import { Button } from '@/components/common';
// instead of
import { Button } from '../../../components/common/Button';

Fixes

  • Removed conflicting overrides section in package.json blocking npm install
  • Converted .eslintrc.mjs and prettier.config.mjs from UTF-16 to UTF-8
Original prompt

This section details on the original issue you should resolve

<issue_title>Initialize Frontend with folder structure</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)

  • Fixes InterviewMint/interviewmint-frontend#1

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits November 19, 2025 13:53
Co-authored-by: Vardhan-ysh <116566154+Vardhan-ysh@users.noreply.github.com>
Co-authored-by: Vardhan-ysh <116566154+Vardhan-ysh@users.noreply.github.com>
Copilot AI changed the title [WIP] Initialize frontend with a folder structure Initialize frontend folder structure with documentation and path aliases Nov 19, 2025
Copilot AI requested a review from Vardhan-ysh November 19, 2025 14:03
Copilot finished work on behalf of Vardhan-ysh November 19, 2025 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants