Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ REDIS_URL=redis://:replace_with_a_new_64_character_redis_password@redis:6379
# ===============================
# RabbitMQ
# ===============================
RABBITMQ_USERNAME=leyu_app
RABBITMQ_USERNAME=mahder_app
RABBITMQ_PASSWORD=replace_with_a_new_rabbitmq_password
RABBITMQ_URI=amqp://leyu_app:replace_with_a_new_rabbitmq_password@rabbitmq:5672
RABBITMQ_URI=amqp://mahder_app:replace_with_a_new_rabbitmq_password@rabbitmq:5672
RABBITMQ_QUEUE_NAME=notifications.queue
RABBITMQ_EXCHANGE_NAME=notifications.exchange
RABBITMQ_EXCHANGE_TYPE=topic
Expand Down
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Any copyright headers present in upstream source files are preserved.

## Modifications

All changes made in this fork relative to the upstream `leyu-backend` are
All changes made in this fork relative to the upstream `mahder-backend` are
tracked in the Git history of this repository. The list below summarizes the
notable categories of modification; consult `git log` for the authoritative
record.
Expand Down
10 changes: 5 additions & 5 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Examples of unacceptable behavior include:

## Project-Specific Guidelines

Given the nature of the Leyu API project as a data collection and task management platform, we have additional guidelines:
Given the nature of the Mahder API project as a data collection and task management platform, we have additional guidelines:

### Data Handling and Privacy
* Respect user privacy and data protection principles
Expand Down Expand Up @@ -84,7 +84,7 @@ This includes:

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [conduct@leyu-api.com](mailto:conduct@leyu-api.com).
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [conduct@mahder-api.com](mailto:conduct@mahder-api.com).

All complaints will be reviewed and investigated promptly and fairly.

Expand Down Expand Up @@ -124,7 +124,7 @@ Community leaders will follow these Community Impact Guidelines in determining t

If you experience or witness unacceptable behavior, please report it by:

1. **Email**: Send a detailed report to [conduct@leyu-api.com](mailto:conduct@leyu-api.com)
1. **Email**: Send a detailed report to [conduct@mahder-api.com](mailto:conduct@mahder-api.com)
2. **Direct Contact**: Reach out to project maintainers directly
3. **Anonymous Reporting**: Use our anonymous reporting form (if available)

Expand All @@ -151,7 +151,7 @@ When reporting an incident, please include:

If you disagree with an enforcement decision, you may appeal by:

1. Sending an email to [conduct-appeals@leyu-api.com](mailto:conduct-appeals@leyu-api.com)
1. Sending an email to [conduct-appeals@mahder-api.com](mailto:conduct-appeals@mahder-api.com)
2. Providing additional context or information
3. Explaining why you believe the decision should be reconsidered

Expand All @@ -174,7 +174,7 @@ We believe in recognizing positive contributions to our community. We encourage:

## Questions

If you have questions about this Code of Conduct, please contact us at [conduct@leyu-api.com](mailto:conduct@leyu-api.com).
If you have questions about this Code of Conduct, please contact us at [conduct@mahder-api.com](mailto:conduct@mahder-api.com).

---

Expand Down
18 changes: 9 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contributing to Leyu API
# Contributing to Mahder API

Thank you for your interest in contributing to the Leyu API project! We welcome contributions from developers of all skill levels and backgrounds. This guide will help you get started and ensure your contributions align with our project standards.
Thank you for your interest in contributing to the Mahder API project! We welcome contributions from developers of all skill levels and backgrounds. This guide will help you get started and ensure your contributions align with our project standards.

## Table of Contents

Expand All @@ -19,7 +19,7 @@ Thank you for your interest in contributing to the Leyu API project! We welcome

## Code of Conduct

This project and everyone participating in it is governed by our [Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [conduct@leyu-api.com](mailto:conduct@leyu-api.com).
This project and everyone participating in it is governed by our [Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [conduct@mahder-api.com](mailto:conduct@mahder-api.com).

## Getting Started

Expand Down Expand Up @@ -50,11 +50,11 @@ If you're new to open source or this project:

```bash
# Fork the repository on GitHub, then clone your fork
git clone https://github.com/YOUR_USERNAME/leyu-backend.git
cd leyu-backend
git clone https://github.com/YOUR_USERNAME/hyperdata-backend.git
cd hyperdata-backend

# Add the original repository as upstream
git remote add upstream https://github.com/ORIGINAL_OWNER/leyu-backend.git
git remote add upstream https://github.com/ORIGINAL_OWNER/hyperdata-backend.git
```

### 2. Install Dependencies
Expand Down Expand Up @@ -451,7 +451,7 @@ For security-related contributions:

1. **DO NOT** create public issues for security vulnerabilities
2. **Follow** our [Security Policy](SECURITY.md)
3. **Report** vulnerabilities privately to security@leyu-api.com
3. **Report** vulnerabilities privately to security@mahder-api.com
4. **Wait** for acknowledgment before proceeding
5. **Coordinate** with maintainers on disclosure timeline

Expand All @@ -461,7 +461,7 @@ For security-related contributions:

- **GitHub Issues**: For bugs and feature requests
- **Discussions**: For questions and general discussion
- **Email**: For private inquiries at [support@leyu-api.com](mailto:support@leyu-api.com)
- **Email**: For private inquiries at [support@mahder-api.com](mailto:support@mahder-api.com)

### Communication Guidelines

Expand Down Expand Up @@ -515,7 +515,7 @@ If you have questions about contributing, please:
3. Create a new discussion or issue
4. Contact maintainers directly

Thank you for contributing to Leyu API! 🚀
Thank you for contributing to Mahder API! 🚀

---

Expand Down
16 changes: 8 additions & 8 deletions RABBITMQ_GUIDELINES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Overview

The Leyu API project uses RabbitMQ as a message broker for asynchronous communication between services. This document provides comprehensive guidelines for working with RabbitMQ in the project, including setup, configuration, best practices, and troubleshooting.
The Mahder API project uses RabbitMQ as a message broker for asynchronous communication between services. This document provides comprehensive guidelines for working with RabbitMQ in the project, including setup, configuration, best practices, and troubleshooting.

## Table of Contents

Expand Down Expand Up @@ -555,21 +555,21 @@ await this.amqpConnection.publish(
**Authentication and Authorization**:
```bash
# Use dedicated user with limited permissions
RABBITMQ_URI=amqp://leyu_api:secure_password@rabbitmq:5672/leyu_vhost
RABBITMQ_URI=amqp://mahder_api:secure_password@rabbitmq:5672/mahder_vhost
```

**TLS Configuration**:
```bash
# Enable TLS in production
RABBITMQ_URI=amqps://leyu_api:secure_password@rabbitmq:5671/leyu_vhost
RABBITMQ_URI=amqps://mahder_api:secure_password@rabbitmq:5671/mahder_vhost
```

### Clustering and High Availability

**Multi-node Setup**:
```bash
# Configure multiple RabbitMQ nodes
RABBITMQ_URI=amqp://user:pass@node1:5672,node2:5672,node3:5672/leyu_vhost
RABBITMQ_URI=amqp://user:pass@node1:5672,node2:5672,node3:5672/mahder_vhost
```

**Queue Mirroring**:
Expand Down Expand Up @@ -692,24 +692,24 @@ version: '3.8'
services:
rabbitmq:
image: rabbitmq:3-management
container_name: leyu-rabbitmq
container_name: mahder-rabbitmq
environment:
RABBITMQ_DEFAULT_USER: admin
RABBITMQ_DEFAULT_PASS: admin123
RABBITMQ_DEFAULT_VHOST: leyu
RABBITMQ_DEFAULT_VHOST: mahder
ports:
- "5672:5672"
- "15672:15672"
volumes:
- rabbitmq_data:/var/lib/rabbitmq
networks:
- leyu-network
- mahder-network

volumes:
rabbitmq_data:

networks:
leyu-network:
mahder-network:
driver: bridge
```

Expand Down
8 changes: 4 additions & 4 deletions REDIS_GUIDELINES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Overview

The Leyu API project uses Redis as a caching layer and message broker for background job processing. This document provides comprehensive guidelines for Redis integration, focusing on caching contributor tasks, microtasks, file paths, and managing MinIO file upload queues through BullMQ.
The Mahder API project uses Redis as a caching layer and message broker for background job processing. This document provides comprehensive guidelines for Redis integration, focusing on caching contributor tasks, microtasks, file paths, and managing MinIO file upload queues through BullMQ.

## Table of Contents

Expand Down Expand Up @@ -754,7 +754,7 @@ version: '3.8'
services:
redis:
image: redis:7-alpine
container_name: leyu-redis
container_name: mahder-redis
restart: unless-stopped
ports:
- "6379:6379"
Expand All @@ -764,7 +764,7 @@ services:
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
networks:
- leyu-network
- mahder-network
healthcheck:
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
interval: 10s
Expand All @@ -775,7 +775,7 @@ volumes:
redis_data:

networks:
leyu-network:
mahder-network:
driver: bridge
```

Expand Down
8 changes: 4 additions & 4 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Overview

The Leyu API project is committed to maintaining the highest standards of security to protect our users' data, financial transactions, and platform integrity. This document outlines our security policies, vulnerability reporting procedures, and responsible disclosure guidelines.
The Mahder API project is committed to maintaining the highest standards of security to protect our users' data, financial transactions, and platform integrity. This document outlines our security policies, vulnerability reporting procedures, and responsible disclosure guidelines.

## Supported Versions

Expand Down Expand Up @@ -74,7 +74,7 @@ We take security vulnerabilities seriously and appreciate responsible disclosure

Instead, please report security vulnerabilities through one of these secure channels:

1. **Email**: Send details to `security@leyu-api.com`
1. **Email**: Send details to `security@mahder-api.com`
2. **Encrypted Email**: Use our PGP key (available on request) for sensitive reports
3. **Private Communication**: Contact the development team directly through secure channels

Expand Down Expand Up @@ -230,14 +230,14 @@ We align our security practices with industry standards:

### Security Team

- **Email**: security@leyu-api.com
- **Email**: security@mahder-api.com
- **Response Time**: 48 hours for acknowledgment
- **Business Hours**: Monday-Friday, 9 AM - 5 PM UTC

### Emergency Contact

For critical security issues requiring immediate attention:
- **Emergency Email**: security-emergency@leyu-api.com
- **Emergency Email**: security-emergency@mahder-api.com
- **Response Time**: 4 hours during business hours, 12 hours outside business hours

## Acknowledgments
Expand Down
2 changes: 1 addition & 1 deletion src/auth/service/auth.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ describe('AuthService', () => {

expect(mailService.sendEmail).toHaveBeenCalledWith(
user.email,
'Welcome to Leyu platform',
'Welcome to Mahder platform',
expect.stringContaining('123456'),
);
expect(smsService.sendVerificationCode).not.toHaveBeenCalled();
Expand Down
2 changes: 1 addition & 1 deletion src/auth/service/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export class AuthService {
if (username == user.email) {
await this.mailService.sendEmail(
user.email,
'Welcome to Leyu platform',
'Welcome to Mahder platform',
message,
);
} else {
Expand Down
10 changes: 5 additions & 5 deletions src/project/service/Task.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ export class TaskService {
if (user) {
this.emailService.sendEmail(
user.email,
'Welcome to Leyu platform',
'Welcome to Mahder platform',
`
Dear ${user.first_name} ${user.middle_name},you are assigned as a facilitator for a task ${task.name}

Expand All @@ -557,7 +557,7 @@ export class TaskService {
// Send email to user with random password
this.emailService.sendEmail(
user.email,
'Welcome to Leyu platform',
'Welcome to Mahder platform',
`
Dear user, Welcome to our platform,you are assigned as a facilitator for a task ${task.name}
Your password is ${randomPassword}, you can change it later
Expand Down Expand Up @@ -615,7 +615,7 @@ export class TaskService {
if (user) {
this.emailService.sendEmail(
user.email,
'Welcome to Leyu platform',
'Welcome to Mahder platform',
`
Dear ${user.first_name} ${user.middle_name},you are assigned as a reviewer for a task ${task.name}

Expand All @@ -635,7 +635,7 @@ export class TaskService {
// Send email to user with random password
this.emailService.sendEmail(
user.email,
'Welcome to Leyu platform',
'Welcome to Mahder platform',
`
Dear user, Welcome to our platform,you are assigned as a reviewer for a task ${task.name}
Your password is ${randomPassword}, you can change it later
Expand Down Expand Up @@ -1011,7 +1011,7 @@ export class TaskService {
if (userTaskBefore.is_flagged) {
this.emailService.sendEmail(
userTaskBefore.user.email,
'Leyu platform',
'Mahder platform',
`
Dear ${userTaskBefore.user.first_name} ${userTaskBefore.user.middle_name},you are flagged from the task ${userTaskBefore.task.name}
`,
Expand Down
2 changes: 1 addition & 1 deletion src/swagger-spec.json

Large diffs are not rendered by default.

Loading