Skip to content

Add database health check endpoint#9

Merged
Mohamed-Elshesheny merged 3 commits intoTeamCoderz:mainfrom
yousef-v7:feat/db-health-check
Feb 18, 2026
Merged

Add database health check endpoint#9
Mohamed-Elshesheny merged 3 commits intoTeamCoderz:mainfrom
yousef-v7:feat/db-health-check

Conversation

@yousef-v7
Copy link
Copy Markdown
Contributor

@yousef-v7 yousef-v7 commented Feb 16, 2026

While exploring the backend structure, I wanted to contribute a small but useful improvement.

I added a lightweight database health check endpoint at /api/health/db that performs a simple DB ping and returns status, latency, and timestamp.

I used AI mainly for brainstorming ideas, then implemented the feature myself to better understand the routing and backend structure.

How to test

  1. Run the backend server
  2. Send a GET request to: /api/health/db
  3. Expected response:

{
"status": "ok",
"db": "up",
"latencyMs": number,
"timestamp": string
}

@Mohamed-Elshesheny
Copy link
Copy Markdown
Contributor

Hey @yousef-v7 — thanks for taking the time to contribute, we appreciate it!

Before we proceed with the review, please address the following:

  • Remove inline comments
  • Revert tsconfig changes
  • Follow contribution guidelines — see CONTRIBUTING.md for PR title format, code style, and commit conventions

Once updated, we'll be happy to review and get this merged. Let us know if anything is unclear.

@yousef-v7
Copy link
Copy Markdown
Contributor Author

yousef-v7 commented Feb 18, 2026

Updates applied:

  • Removed inline comments
  • Reverted tsconfig changes
  • Updated commit to follow contribution guidelines

Happy to make any further adjustments if needed

…documentation and consistent status responses.
@Mohamed-Elshesheny Mohamed-Elshesheny merged commit 95e5e9a into TeamCoderz:main Feb 18, 2026
@Mohamed-Elshesheny
Copy link
Copy Markdown
Contributor

Thank You, @yousef-v7

Thank you for your contribution to WordyMe. The database health check endpoint is well-implemented.
We appreciate the quality of your work and welcome future contributions ❤️.

@Mohamed-Elshesheny Mohamed-Elshesheny added the enhancement New feature or request label Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants