6 Commits

Author SHA1 Message Date
1ad136ea60
feat: Implement registration feature and update database service
This commit creates new methods for the authentication system, especially the user registration feature. The update also validates input data and checks if a user already exists in the database. It modifies the application entry point to include the updated user registration route and provides updates to the database service to include user-related functions. The MariaDB collation was also updated in the database schema script to support unicode.
2024-05-21 16:14:54 +02:00
Mathis
b72e715d0f
feat: add promise callback to getAllUsers method call
This commit adds an empty then() callback to the getAllUsers method call to handle the returned promise. This is typically followed by actual actions in production to handle the promise resolution.

Signed-off-by: Mathis <mherriot@yidhra.fr>
2024-05-15 09:32:51 +02:00
Mathis
9c97420027 refactor: Update service dependency and logger names in app.ts
This commit simplifies the database service dependency by importing 'justForTesting' method from the simplified databases.service. It also renames the logger instance and environment files from "App" to "OnlyDevs". Removed unnecessary test function using mongo and mariadb services.
2024-05-14 23:34:09 +02:00
39b4bfc022
feat: Add MariaDB service and validators utility, refactor MongoDB service, and update configs
This commit introduces several changes:
- A new MariaDB service is implemented including connection handling and query execution.
- Field validators (email, username, password) are added to utils.
- The MongoDB service is refactored by moving the connect method into the constructor.
- The "noDelete" configuration field is updated in biome.json.
- A new interface is added for factorizing data into SQL queries.
- The app.ts file is updated to include the MariaDB test alongside MongoDB.
2024-05-14 16:52:20 +02:00
2b53168dd9
feat: set up basic express server configuration
This commit adds different middlewares to the express server such as cors, helmet for security, json and url-encoded body parsers, and gzip compression. Additionally, server start logic including router configuration and MongoDB service instantiation are also handled.
2024-05-13 16:52:50 +02:00
806eb3e183
feat: Add new file
A new file has been added to the project. The change includes setting the unique mode to 100644.
2024-05-13 09:39:14 +02:00