Skip to content

Comments

Refactoring backend and server#117

Open
gbowne1 wants to merge 17 commits intomasterfrom
gbowne1-fixserver
Open

Refactoring backend and server#117
gbowne1 wants to merge 17 commits intomasterfrom
gbowne1-fixserver

Conversation

@gbowne1
Copy link
Owner

@gbowne1 gbowne1 commented Feb 22, 2026

This PR;

  • /package.json in root is now frontend only packages (will need reinstalling and recommit of lock file

  • /src/package.json is now the backend packages only

  • backend server is now a Express app.js and a server.js in /src. Only job they do now is server connections to the database and app.js is routing, etc.

  • fixed the backend logic so that it's not redundant or duplicated like it was.

  • is now easier to maintain and should cause less CI issues

Now that the css is less monolithic this should be easier now to further separate it into separate backend and frontend without needing to make it into separate repositories

Note: this might need some minor cleaning up following merge including steps outlined above

start of change from monolithic server backend to modular
Add the Express app.js see issue 100
db connection logic so can be modular
Oops wrong place
new backend package.json
new AuthController.js that has no duplication or redundancy
fixed many issues with auth.js middleware
removed this package.json that has both frontend and backend packages in it in favor of separated and this one will be just frontend packages will need reinstalling and the lock file committed and pushed
deleted this because this now only has frontend packages and this will need reinstalling and recommit back to github  yes on merge this will break ci but just add back the lock file then we can work on CI
removed duplicate comments
removed unnecessary file
@gbowne1 gbowne1 self-assigned this Feb 22, 2026
@gbowne1 gbowne1 added enhancement New feature or request cleanup refactor labels Feb 22, 2026
@gbowne1 gbowne1 moved this from Todo to In Progress in codestream Feb 22, 2026
@gbowne1 gbowne1 added this to the Alpha milestone Feb 22, 2026
@gbowne1 gbowne1 linked an issue Feb 22, 2026 that may be closed by this pull request
@gbowne1 gbowne1 requested a review from shishir-21 February 22, 2026 03:13
@gbowne1
Copy link
Owner Author

gbowne1 commented Feb 22, 2026

Ignore the CI run here, the lock file is intentionally removed due to refactoring separating frontend from backend. The new lock file will need added back to this.

The backend is now in /src

@glenjaysondmello
Copy link
Collaborator

package.json is inside src, so the start script node src/server.js resolves to src/src/server.js and fails to load arc/routes.
Change the script to node server.js (or adjust paths) to fix the path duplication.

Fixing main entrypoint and also start script paths from src/server.js to just server.js
@gbowne1 gbowne1 mentioned this pull request Feb 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

[Bug] Duplicate logic in /src/controllers/authController.js [TODO] Expand server.js into modular files

3 participants