How tomfregonese/quizapp works
Project type and purpose
• This is a full-stack quiz application.
• Front-end is built in Angular (TypeScript) and serves the user interface.
• Back-end is an ASP.NET Core Web API written in C#, exposing REST endpoints and handling business logic.
• The application uses JSON files in a DataSet folder as its data store (for categories, quizzes, questions, users, progress).
File structure
A. Top-level separation
– Back.QuizApp: the API server
– Front.QuizApp: the Angular client
B. Backend layers (Back.QuizApp)
– Controllers: HTTP entry points, DTO definitions, mapping to domain models
– Business:
· IServices (interfaces for category, question, quiz, user, user-progress services)
· Models (domain entities: Category, Question, Answer, Quiz, User, UserQuizProgress)
· Services (implementations of the business logic, e.g., QuizService, TimerService)
– DataSet: JSON files acting as a file-based datastore
– Configuration: Program.cs, appsettings.json, launchSettings.json, .http test scripts
C. Frontend layers (Front.QuizApp/src/app)
– environment & app.config.ts: API base URLs and routing
– business: DTOs, models, mappers, services (CategoryService, QuizService, etc.)
– components: reusable UI pieces (dashboard, quiz-card, loading-spinner, error-dialog, quiz-question, user-header)
– pages: screen-level components (home, login, quiz-details)
– Angular module + routing definitions in app.routes.ts
README
• Minimal content (“# QuizApp”).
Detail but keep clarity
• Layers and their interactions without overcrowding.
• Five service interfaces (ICategoryService, IQuestionService, etc.) either aggregated as “Business Services” or individually if detail is needed.
• TimerService if quiz timing is a core feature.