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.
This commit adjusts the .env.exemple file to better suit development needs, by updating the CONTEXT variable from 'prod' to 'dev'. This change provides easier environment setup for local testing and development.
Signed-off-by: Mathis <mherriot@yidhra.fr>
Update .env.example file with production context details. Includes changes like modifying the CONTEXT from 'dev' to 'prod', adding MYSQL_HOST variable, and replacing MONGO_COLLECTION with MONGO_DATABASE.
This commit introduces some additional environment variables to the .env.exemple file. The new variables include settings for the application port, debug mode, context, MySQL port, and MongoDB port.
A new file, .env.example, has been added. It contains configuration for both MySQL and MongoDB, including username, password, and database information.