Skip to content

Conversation

siverne
Copy link
Member

@siverne siverne commented Nov 26, 2026

Closes #121

What

  • / in the backend showed the database name, the database user and the server time to anyone. It is now a plain health check: OK when the backend can reach the database, and HTTP 503 when it cannot.
  • Deleted backend/db.js. src/db.ts replaced it, and only the Vinmonopolet import still used it.
  • Deleted the Vinmonopolet import in scripts/ (the script, its test, README, .env.example and package.json). We use X-Wines now, and nothing else used it. deploy.sh, check.mjs and the systemd service stay.
  • Deleted backend/src/scripts/wine-stats.st. It had the wrong file ending, so it never ran, and nothing used it.
  • Removed the /api/hello proxy from vite.config.ts. It only pointed to /, and the frontend never called it.
  • docs/setup.md describes the new /.

Not done: the optional last task (moving the wine and review code into their own folders). That is a bigger change than we should make on the last day.

Tests

  • npm run check passes.
  • curl http://localhost:3001/ answers OK.

The backend changes, so the VM needs a deploy after the merge.

AI: Claude found the files that were no longer used and suggested the changes. I made them and checked them.

@siverne siverne requested a review from a team as a code owner November 26, 2026 15:50
@siverne siverne linked an issue Nov 26, 2026 that may be closed by this pull request
4 tasks
Copy link
Member

@manerlan manerlan left a comment

Choose a reason for hiding this comment

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

Looked over and seems good. Nice to get rid of unnecessary files. Npm run check and curl passes, except for frontend prettier for README.md. Think it might be a local problem, so will approve, and rather fix the prettier issue if it persists.

@manerlan manerlan merged commit 465cf46 into main Nov 26, 2026
@manerlan manerlan deleted the 121-remove-leftovers branch November 26, 2026 17:52
@manerlan
Copy link
Member

Looked over and seems good. Nice to get rid of unnecessary files. Npm run check and curl passes, except for frontend prettier for README.md. Think it might be a local problem, so will approve, and rather fix the prettier issue if it persists.

README.md in frontend was missing a new line at the bottom, causing it to fail prettier. Will fix as a part of next PR.

Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove leftovers
2 participants