Skip to content

Conversation

Copy link

Copilot AI commented Sep 22, 2025

This PR renames the app/ directory to backend/ to provide a clearer and more intuitive project structure for the FastSaaS application.

Changes Made

Directory Structure

  • Renamed app/ directory to backend/ while preserving all subdirectories and files:
    • backend/adapters/ - Email and payment service adapters
    • backend/alembic/ - Database migration files
    • backend/api/ - FastAPI routes and endpoints
    • backend/models/ - SQLAlchemy data models
    • backend/tests/ - Unit and integration tests
    • backend/utils/ - Utility functions and helpers

Configuration Updates

  • Makefile: Updated linting and formatting commands to reference the new backend/ directory:
    • uv run mypy backend
    • uv run ruff check backend
    • uv run ruff format backend
  • README.md: Updated project structure documentation to reflect the new directory name

What Wasn't Changed

  • Database shell command remains psql -d app since it refers to the database name, not the directory
  • No Python import statements required updates as no absolute imports from the app module were found
  • All file contents remain identical

Benefits

This change improves developer experience by:

  • Making the project structure more self-documenting
  • Clearly distinguishing the Python backend from other components
  • Following common naming conventions where backend and frontend are clearly separated
  • Maintaining consistency with Docker service names and documentation references

The rename operation was tracked by Git as proper file moves, preserving full history for all files.


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

@aboubacs aboubacs closed this Sep 22, 2025
Copilot AI changed the title [WIP] Rename app folder to backend Rename app folder to backend for clearer project structure Sep 22, 2025
Copilot AI requested a review from aboubacs September 22, 2025 18:01
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