Skip to content

Conversation

@filipchristiansen
Copy link
Contributor

This PR reorganizes the codebase to place all application logic, routers, static files, and templates within a new server module. Key changes include:

  • Moving main.py, routers, query_processor.py, and server_utils.py into the server directory
  • Updating imports and references throughout the code (e.g., server.routers, server.server_utils)
  • Relocating static assets from src/static to src/server/static and templates from src/templates to src/server/templates
  • Updating the Dockerfile CMD to point to server.main:app

This refactor provides a cleaner, more consistent structure for the FastAPI application and its related components.

Copy link
Member

@cyclotruc cyclotruc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two things:
1 - We should make it so the static ressources are not served under /server/ subpath
1 - We should split the config in 2 files, maybe rename them server_config and config to fix the CLI bug
image

@filipchristiansen filipchristiansen force-pushed the refactor/server-structure branch from af29daa to 1a1d587 Compare January 21, 2025 06:23
@cyclotruc cyclotruc merged commit b34b7f4 into main Jan 24, 2025
8 checks passed
@cyclotruc cyclotruc deleted the refactor/server-structure branch January 24, 2025 06:12
@cyclotruc
Copy link
Member

@filipchristiansen Finally merged, decided to move utils into server and adjusted readme, now we have a strong structure to improve upon!

FOLKS-Tech pushed a commit to FOLKS-Tech/gitingest that referenced this pull request Sep 5, 2025
…ths (coderamp-labs#142)

* Refactor project into a dedicated 'server' module and update all references accordingly

---------

Co-authored-by: Romain Courtois <romain@coderamp.io>
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.

3 participants