Skip to content

Feat/scaling backend#9

Open
Schandroid243 wants to merge 18 commits intomainfrom
feat/scaling_backend
Open

Feat/scaling backend#9
Schandroid243 wants to merge 18 commits intomainfrom
feat/scaling_backend

Conversation

@Schandroid243
Copy link
Copy Markdown
Owner

No description provided.

Schandroid243 and others added 18 commits August 11, 2025 10:25
…o true and added a tabwidth of 2

config(.eslintrc.json): Specified use commonJS, node, recommended eslint and prettier and configured the latest version of ecma script
…onfig

config(.prettierrc): Configured the semi colones, set single quotes t…
feat(src/config/db.js): Configured the connection to the database and handling failed attemtps when connecting to the database.

feat(src/app.js):  Configured the server and added an health route to check if everything is working good.

feat(src/server.js): Established connection to the database after launched the server.
…ssword.

feat(auth/authController.js): Added a login and a register function to add a new user, check wether the user already exist and handled errors using try catch.

feat(app.js): Added the auth route.
…tion

feat(model/User.js): Added a user model and a function to hash the pa…
feat(models/task.js): Added task model and added a status.

feat(task/taskcontroller.js): Added a CRUD with a try catch section for every methods.

feat(task/taskRoutes.js): Added a CRUD routes and a middlware to check the validity of the token for each of them.

feat(middlewares/authMiddleware.js):  Get the token, Check if the token is valid, check if the token exists, Add user to the request and handle errors.
…tion using joi

 to make sure only correct data enters our system.
feat(middlewares/validate): Prevents broken/malicious input.
feat(validators/authValidation, taskValidation): Added request valida…
feat(app.js): Added the errorHandler middleware.

feat(middlewares/errorHandler.js): Created a middleware to handle requests.

feat(jest.config.js): Added necessary jest configuration to initiate unit tests.

refactor(routes/task/taskController.js): Refactored the catch method using the errorHandler middleware.

feat(tests/app.test.js): Added a test for the route Health in the app.js file.
…r_and_unit_tests

update(package.json):  Updated test script.
Secured headers (Helmet).
Prevented CORS issues.
Blocked brute-force attempts.
Sanitized requests to prevent NoSQL injection & XSS.
…e_security_and_unti_test

feat(src/app.js):
Added cluster to cpu number
@gitguardian
Copy link
Copy Markdown

gitguardian bot commented Sep 17, 2025

⚠️ GitGuardian has uncovered 2 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
- - MongoDB Credentials a0bf529 .env View secret
- - MongoDB Credentials ec4a850 .env.example View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

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.

1 participant