desactivation des cors#4
Merged
Merged
Conversation
- Add GitHub OAuth credentials to .env.example - Introduce MySQL connection settings in .env.example - Update logger configuration by removing unnecessary transport settings for improved clarity - Exclude memory_bank/ directory from .gitignore
- Change NODE_ENV to ENV in the deployment workflow for consistency - Add a step to create a .env file with necessary application and database configurations - Update Docker compose commands to reference the new ENV variable
- Modify Docker Compose to use new environment variable names for database configuration - Add initialization SQL script to the MySQL service in Docker Compose - Update Dockerfile to use npm install with force for dependency installation - Adjust deployment workflow to dynamically set database names in the .env file - Remove outdated migration files related to articles
- Add new file watching patterns for images in adonisrc.ts - Remove obsolete Dockerfile.dev and compose.dev.yaml files - Update deployment workflow to reference the new compose.yaml - Enhance active and progress documentation in memory bank to reflect current project state and architecture
- Delete the env.txt file as it is no longer needed in the project structure.
- Delete the deploy.dev.yml file as it is no longer needed in the project structure.
- Delete the deploy.yml file as it is no longer needed in the project structure.
- Add branch triggers for push and pull request events on main and develop branches in the deploy.dev.yml workflow.
- Add environment specification for the deployment job in the deploy.dev.yml workflow to ensure proper context during deployment.
- Modify the deployment workflow in deploy.dev.yml to change the application port from 3306 to 3333, ensuring proper application routing during deployment.
- Modify the deployment workflow in deploy.dev.yml to change the MySQL port from 3306 to 3307, ensuring compatibility with the updated database configuration.
- Modify the compose.yaml file to utilize environment variables for application and database configurations, enhancing flexibility and consistency across environments. - Change NODE_ENV to production and update port configurations to use dynamic environment variables for both application and MySQL services.
…bles - Change MySQL port configuration in compose.yaml to use MYSQL_PORT for improved flexibility. - Update NODE_ENV to production and APP_KEY in deploy.dev.yml for consistency in the deployment environment.
- Change MySQL port configuration in compose.yaml from dynamic environment variable to a static value of 3306 for both production and development environments, ensuring consistency in database connectivity.
- Simplify the Docker Compose configuration by removing unnecessary volume mappings and ensuring the MySQL port is configurable via the new environment variable `${MYSQL_PORT}`.
- Update the Dockerfile to correctly copy the build artifacts and resources for production.
- Revise activeContext.md and productContext.md to reflect recent changes in the Docker setup and project objectives.
- Enhance projectbrief.md with detailed project goals and scope, emphasizing the use of Docker for consistent development and production environments.
- Correct the directory name in .gitignore from 'memory_bank/' to 'memory-bank/' for consistency. - Simplify the Docker Compose configuration by removing unnecessary volume mappings. - Adjust the Dockerfile to ensure proper copying of build artifacts and resources, including images for production deployment.
- Add new dashboard method in ArticlesController to fetch article statistics for the dashboard view. - Update package.json to include a new path for enums. - Modify CORS configuration to allow all origins for improved API accessibility. - Adjust user migration to change password field to nullable and implement role-based access using enums. - Update login and register pages to replace Link components with anchor tags for better compatibility. - Refactor dashboard page to accept individual article statistics as props instead of a single stats object. - Update routes to link the dashboard to the new controller method for dynamic data rendering.
- Introduce MinIO service in Docker Compose for object storage, including environment variables for configuration. - Update package.json and package-lock.json to include new dependencies: axios and minio. - Refactor articles and user models to utilize enums for article status and user roles, enhancing code clarity and maintainability. - Modify article and register validators to incorporate new fields and validation rules. - Update article creation and registration forms to support new fields and improve user experience.
- Update package.json and package-lock.json to include new dependencies: @tanstack/react-query, date-fns, lucide-react, react-syntax-highlighter, socket.io, and wavesurfer.js. - Refactor ArticlesController to improve article creation logic and utilize enums for article status. - Enhance HomeController and ProfileController to filter articles based on their status. - Update Vite configuration to include a proxy for socket.io connections. - Modify article model to improve tag handling and slug generation. - Add new routes for message and discussion management, enhancing application functionality.
- Update ArticlesController to allow users to view and manage their own articles, including new methods for listing, editing, and updating articles. - Refactor ArticleStatsService to support fetching statistics based on user ID for personalized dashboard insights. - Improve DiscussionsController to ensure proper deletion of discussions and associated messages/bans, with admin role verification. - Add new routes for article management and discussion deletion, enforcing admin middleware for sensitive actions. - Update .gitignore to include new directories for better project organization.
- Enhance ArticlesController to support banning and unbanning articles, with appropriate role checks for admin users. - Update ArticleStatsService to include statistics for banned articles. - Modify Article model to add a banReason field for tracking reasons for article bans. - Refactor dashboard and articles pages to display banned articles and adjust filtering based on user roles. - Update routes to include new endpoints for banning and unbanning articles, ensuring proper middleware enforcement.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.