Skip to content

Conversation

@gemayc
Copy link
Member

@gemayc gemayc commented Oct 16, 2025

Version estable en develop

mcarenashd and others added 30 commits September 26, 2025 09:18
refactor(project): move backend folders into src and setup MySQL data…
Replace public class fields with declare keyword in User and Article
models to avoid shadowing Sequelize's attribute getters and setters.
feat: implement JWT authentication and authorization
- Implement User model with Sequelize (username, email, password, role, etc.)
- Add register and login controllers with password hashing (bcrypt) and email normalization
- Integrate JWT token generation and verification utilities
- Create validation middlewares (express-validator) for register and login
- Add auth middleware to protect routes and role-based access control
- Update auth routes with validation and controllers
- Add validation to prevent duplicate usernames on registration
- Update password validator to require at least 8 characters
Applied the  middleware to the
endpoint.

This change ensures that only users with administrative privileges can
create new articles, enhancing the application's access control.
feat(articles): Restrict article creation to admin role
gemayc and others added 25 commits October 13, 2025 10:44
feat(articles): add like and unlike functionality
Sync field names (user_id, article_id) and ensure compatibility with Sequelize and relationships.
…CI a Docker Hub)

• Conexión MySQL con TLS opcional (DB_SSL, DB_PORT=4000, DB_SSL_CA_PATH) para TiDB Cloud.

• Compose usa imagen de Docker Hub (gema284/codigo-abisal-server-api:dev) y monta CA.

• Columna 'likes' en Article (DEFAULT 0); tipado ajustado y creación segura.

• DB_AUTO_ALTER: true solo en local, false en nube (no toca esquema en prod).

• .env.example actualizado; .gitignore ignora .env*, certs/*.pem y *.sql.

• (CI) Workflow para build & push de imagen a Docker Hub al push/PR en develop/main.
@gemayc gemayc requested review from mcarenashd and olgararo October 16, 2025 08:43
@gemayc gemayc self-assigned this Oct 16, 2025
@mcarenashd mcarenashd merged commit 558c78f into main Oct 16, 2025
1 check failed
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.

3 participants