Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
ee73e31
setup the folder with config
EyobTilaye Mar 28, 2026
8e9751c
feat: folders and files setup
lelisa21 Mar 29, 2026
a95b148
feat: logger added for console logging and cleanup
lelisa21 Mar 29, 2026
ef1b8bf
fix:ESLint installed to fix issue
lelisa21 Mar 29, 2026
5dd34a6
feat: ESLint initialized
lelisa21 Mar 29, 2026
c1e703d
feat: ESLint Initialized
lelisa21 Mar 29, 2026
5e157d9
fix: ESLint issue on browser vs node
lelisa21 Mar 29, 2026
50cf6ab
fix: ESLint issue fixed
lelisa21 Mar 29, 2026
66798cf
fix: eslint issue changed from MJS to EJS
lelisa21 Mar 29, 2026
8226734
ESLint
lelisa21 Mar 29, 2026
d4e2200
fix: jest installed for testing
lelisa21 Mar 29, 2026
cf7cb31
feat: helpers and database setup
lelisa21 Mar 29, 2026
ecfbcb3
feat: add appointments modules with models, controllers, services, va…
Zemedkunworkalem32 Mar 30, 2026
d6ce764
feat: add availability module (model, service, controller, routes, va…
Zemedkunworkalem32 Mar 30, 2026
2baf07f
add packages
Zemedkunworkalem32 Mar 30, 2026
9934bc3
feat: update appointments modules with models, controllers, services,…
Zemedkunworkalem32 Mar 30, 2026
8906d92
update availability.control
Zemedkunworkalem32 Mar 30, 2026
4a978df
update availability.model
Zemedkunworkalem32 Mar 30, 2026
08bf23b
update availability.routes
Zemedkunworkalem32 Mar 30, 2026
495d0e1
update availability.services
Zemedkunworkalem32 Mar 30, 2026
975084e
update .\availability.validation.js
Zemedkunworkalem32 Mar 30, 2026
e437303
update .\index.js
Zemedkunworkalem32 Mar 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Server
NODE_ENV=development
PORT=

# Database
MONGODB_URI=
MONGODB_URI_PROD=
Comment on lines +6 to +7
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

MONGODB_URI_PROD is documented but not validated.

MONGODB_URI_PROD is listed here but isn't defined in env.config.js's schema. Either add it to the Zod schema if it's intended for use, or remove it from the example to avoid confusion.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.env.example around lines 6 - 7, The .env.example lists MONGODB_URI_PROD but
env.config.js's Zod schema does not validate it; either remove MONGODB_URI_PROD
from .env.example or add it to the Zod schema in env.config.js (e.g., add a
MONGODB_URI_PROD entry alongside MONGODB_URI with the same validation rules such
as z.string().nonempty() or an optional z.string() if allowed) and update any
places that read process.env.MONGODB_URI_PROD to use the new schema key.


# JWT
JWT_ACCESS_SECRET=
JWT_REFRESH_SECRET=
JWT_ACCESS_EXPIRY=
JWT_REFRESH_EXPIRY=

# Security
BCRYPT_ROUNDS=
RATE_LIMIT_WINDOW_MS=
RATE_LIMIT_MAX_REQUESTS=

# CORS
CORS_ORIGIN=http://localhost:3000
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
node_modules/
.env*
.env
!.env.example

logs/
*.log

dist/
build/

.vscode/
.idea/
17 changes: 17 additions & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const js = require("@eslint/js");
const globals = require("globals");
const { defineConfig } = require("eslint/config");

module.exports = defineConfig([
js.configs.recommended,
{
files: ["**/*.{js,mjs,cjs}"],
languageOptions: {
globals: globals.node,
},
rules: {
"no-unused-vars": "warn",
"no-console": "off",
},
},
]);
Loading
Loading