How ashutoshadate/sctbackend works
Project type and purpose
• This is a server-side RESTful Web API backend (ASP.NET Core 8.0) for the Sri Chintamani Trusts website.
• Its responsibilities are to authenticate users, manage “Devotee” records, and process “Contact Us” submissions.
File structure
• Controllers: AuthController, DevoteeController, ContactUsController handle HTTP endpoints.
• Data/AppDbContext.cs: EF Core DbContext connecting to the underlying relational database.
• Models:
• Domain entities (Devotee, DevoteeContact)
• DTOs for request/response payloads (UserRequestDto, UserResponseDto).
• Repositories: AuthRepository, DevoteeRepository, ContactUsRepository implement the corresponding I*Repository interfaces; encapsulate business logic & data-access.
• Helper/authHelper.cs: contains authentication routines (e.g., password hashing, JWT generation).
• Migrations: EF Core code-first migrations for creating/updating database schema.
• Program.cs: configures services (DbContext, DI for repositories and helper), Swagger/OpenAPI, middleware, and starts the web host.
• Configuration files: appsettings.json / appsettings.Development.json hold connection strings and settings.
README
• Confirms this is the server-side code for the Sri Chintamani Trusts website.