David Headrick b3f266f9a8 Enhance authentication features and refactor codebase
Updated `AuthenticationController` with new methods for authentication, token refresh, and password recovery. Improved error handling and response structure.

Refactored dependency injection in `Program.cs` and added JWT settings in `appsettings.json`. Removed unused `Class1.cs` files.

Introduced new DTOs for authentication requests and updated `IAuthService` and `IUserRepository` interfaces. Enhanced `User` class and added `AuthResult` enum for standardized responses.

Expanded `DataAccess` for better database operations and updated `UserRepository` and `AuthService` to implement new authentication logic.

Front-end changes include renaming variables for consistency and updating the `ForgotPasswordModal` and `Login.tsx` components to use usernames instead of email addresses.

Updated API proxy path in `vite.config.ts` and ensured proper typing for `API_BASE_URL` in global TypeScript definitions.
2025-02-22 18:45:37 -06:00
2025-02-17 10:41:28 -06:00

MassEmailReact

Mass Email React Website

to clone: in command prompt, go to the directory you want to clone the project to, then type:

git clone --branch main https://<your_username_here>@git.surge365.com/Surge365/MassEmailReact.git

TO DO IF YOU WANT TO BUILD THIS PROJECT

  1. Install node.js v22.13.1
  2. Recommended to install nvm for Windows, then in command prompt, type: nvm install 22.13.1
  3. Then type: nvm use 22.13.1
  4. Then to verify, type: node -v # Should return v22.13.1
  5. Then to verify npm, type: npm -v # Should return a version

Project Structure

This project consists of multiple layers to ensure separation of concerns and maintainability.

Project Descriptions and Dependency Order

  1. Surge365.MassEmailReact.Domain - Contains core business logic and domain entities.
  2. Surge365.MassEmailReact.Application - Handles application logic and use cases. Depends on Domain.
  3. Surge365.MassEmailReact.Infrastructure - Provides data access, external integrations, and persistence. Depends on Application and Domain.
  4. Surge365.MassEmailReact.API - The API layer that serves endpoints. Depends on Application and Infrastructure.
  5. Surge365.MassEmailReact.Web - The front-end application. Communicates with API.
  6. Surge365.MassEmailReact.UnitTests - Contains unit tests for various layers of the application.

API ───► Application ───► Domain

API ───► Infrastructure ───► Application & Domain

Description
Mass Email React Website
Readme 1.4 MiB
Languages
TypeScript 64%
C# 35.5%
JavaScript 0.2%
CSS 0.2%