Commit Graph

128 Commits

Author SHA1 Message Date
4fd018e97c Merge pull request 'chore(docker): change application port from 8080 to 8081' (#12) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/12
2025-11-23 14:07:47 +00:00
af4570d6d2 chore(docker): change application port from 8080 to 8081
Update the Dockerfile to use port 8081 instead of 8080 for the application.
This includes:
- Modified EXPOSE directive to port 8081
- Updated Gunicorn bind address to 0.0.0.0:8081

Ensures consistency between the exposed port and the actual port the
application binds to when running inside the container.
2025-11-23 14:06:30 +00:00
55cff2f408 Merge pull request 'chore(docker): change application port from 8000 to 8080' (#11) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/11
2025-11-23 14:02:57 +00:00
36b5bb14b3 chore(docker): change application port from 8000 to 8080
Update Dockerfile to expose and bind Gunicorn to port 8080 instead of 8000. This aligns the container port configuration with the expected deployment environment requirements.

Changes:
- Update EXPOSE directive to port 8080
- Update Gunicorn bind address to 0.0.0.0:8080
2025-11-23 14:02:30 +00:00
8f5a97f18e Merge pull request 'feat: add user management endpoints and update appointment model' (#10) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/10
2025-11-23 13:55:48 +00:00
4fdc7c35ee feat: add user management endpoints and update appointment model
Add comprehensive API documentation for user management endpoints including profile updates, user listing, and admin user management features. Update appointment model to include additional status options (completed, cancelled) and add max_length constraint to email field. Change appointment creation endpoint to require user authentication instead of being public.

Changes:
- Add API docs for update_profile, get_profile, all-users endpoints
- Add API docs for activate-deactivate-user and delete-user admin endpoints
- Update appointment creation to require authentication
- Add 'completed' and 'cancelled' status options to Appointment model
- Add max_length constraint to EncryptedEmailField
- Regenerate initial migration with updated model definitions
2025-11-23 13:55:04 +00:00
7e721aa7cf Merge pull request 'refactor(api): replace hardcoded URLs with dynamic URL generation' (#9) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/9
2025-11-23 12:21:27 +00:00
4acd78988e refactor(api): replace hardcoded URLs with dynamic URL generation
Replace hardcoded localhost URLs (http://127.0.0.1:8000) in API root
endpoint documentation with request.build_absolute_uri() calls. This
makes the API documentation URLs environment-agnostic and ensures they
reflect the actual domain/host being used to access the API, improving
portability across development, staging, and production environments.
2025-11-23 12:20:05 +00:00
c5f94d254e Merge pull request 'config: switch database backend from SQLite to PostgreSQL' (#8) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/8
2025-11-23 00:38:21 +00:00
a6ae78644d config: switch database backend from SQLite to PostgreSQL
Replace SQLite with PostgreSQL as the default database backend.
Database connection settings are now configured via environment
variables (POSTGRES_DB, POSTGRES_USER, POSTGRES_PASSWORD,
POSTGRES_HOST, POSTGRES_PORT) for better scalability and
production readiness.
2025-11-23 00:36:34 +00:00
bac26a0487 Merge pull request 'feature/meetings' (#7) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/7
2025-11-23 00:28:30 +00:00
d670baf594 refactor(email): improve email service implementation and templates
- Remove strip_tags usage and use explicit fallback text for HTML emails
- Use named parameters in EmailMultiAlternatives for better clarity
- Add fail_silently=False to email.send() for explicit error handling
- Rename variables (html_content -> html_message, email_msg -> email)
- Remove action buttons from appointment email templates

These changes improve code readability and provide a clearer fallback
message for non-HTML email clients instead of relying on stripped HTML.
2025-11-23 00:27:44 +00:00
1fc91d5949 feat: enable meetings app and simplify development configuration
- Enable meetings app in INSTALLED_APPS and add URL routing
- Switch from PostgreSQL to SQLite for default database configuration
- Remove meetings directory from .gitignore
- Move API root endpoint from users app to main URL configuration
- Remove HIPAA-specific email and compliance settings (EMAIL_ENCRYPTION_KEY, HIPAA_EMAIL_CONFIG, BAA_VERIFICATION)
- Add SITE_NAME and ENCRYPTION_KEY environment variables
- Regenerate initial user migrations

These changes simplify the development setup by using SQLite as the default database and removing complex compliance configurations while enabling the core meetings functionality.
2025-11-23 00:19:26 +00:00
b85391d632 Merge pull request '##$$' (#6) from feature/authentication_and_authorization into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/6
2025-11-22 19:22:19 +00:00
8ddd6fe77f ##$$ 2025-11-22 19:21:47 +00:00
9ca7f43fdc Merge pull request 'Rendering with docker' (#5) from feature/authentication_and_authorization into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/5
2025-11-22 19:15:01 +00:00
472461b8b1 Rendering with docker 2025-11-22 19:13:34 +00:00
9f7d2ebe43 Merge pull request '$$#' (#4) from feature/authentication_and_authorization into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/4
2025-11-22 17:27:34 +00:00
6ea70ee669 $$# 2025-11-22 17:26:52 +00:00
55d6226d6a Merge pull request '#$$' (#3) from feature/authentication_and_authorization into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/3
2025-11-22 16:45:26 +00:00
7d22911646 #$$ 2025-11-22 16:44:53 +00:00
9e09fc2c30 Merge pull request 'feature/authentication_and_authorization' (#2) from feature/authentication_and_authorization into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/2
2025-11-22 16:10:32 +00:00
a1ece06118 $ 2025-11-22 16:07:29 +00:00
bc881c84f9 $ 2025-11-22 16:07:11 +00:00
9d9858ef69 Merge pull request 'feat: add HIPAA-compliant email and OTP authentication system' (#1) from main into feature/authentication_and_authorization
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/1
2025-11-22 02:23:15 +00:00
f06b5120e9 feat: add HIPAA-compliant email and OTP authentication system
Add comprehensive HIPAA compliance features and OTP-based authentication:

- Configure HIPAA email settings with AES-256 encryption standard
- Add secure portal URL and BAA verification configuration
- Implement OTP verification for user registration and password reset
- Add user model fields for email verification and password reset OTPs
- Configure templates directory in Django settings
- Add authentication flow endpoints with detailed documentation
- Update dependencies to support new security features
- Reorganize .gitignore for better structure

These changes ensure HIPAA compliance for healthcare data handling
with 6-year audit retention, secure email communications, and
multi-factor authentication capabilities.
2025-11-22 02:19:44 +00:00
c2015d5ad0 Implement user model with custom user manager and update admin serializers 2025-11-13 00:52:34 +00:00
b966bfd190 Add initial Django project structure with user authentication and profile management 2025-11-12 11:51:27 +00:00