How ramiz1337/fitness-tracker works
Pulse Fit is a workout-planning application with a Next.js frontend and an ASP.NET Core API. Users can browse exercise and workout experiences, register or log in, and manage workouts; the API also supports workout use and comments. The backend persists users, exercises, workouts, and related records through EF Core and seeds exercise data at startup. The excerpts show backend routing and persistence, but no frontend API calls, so the connection between browser actions and API endpoints is not asserted.
Main entry points: AppDbContext.cs EF Core context · Program.cs ASP.NET API runtime · page.tsx Home and discovery · AuthController.cs Register and login
Components 20
Frontend experiences
- Home and discovery
frontend/src/app/home/page.tsx - Exercise library
frontend/src/app/exercises/page.tsx - Workout calendar
frontend/src/app/Calender/page.tsx - Login page
frontend/src/app/login/page.tsx - Registration page
frontend/src/app/register/page.tsx - Home cards
frontend/src/app/Components/Header/Card.tsx - Header cards
frontend/src/app/Components/Header/HeaderCard.tsx - Personal cards
frontend/src/app/Components/Header/PersonalCard.tsx
Backend API
- ASP.NET API runtime
Backend/Program.cs - Workout and comments API
Backend/Controllers/WorkoutController.cs - Exercise API
Backend/Controllers/ExerciseController.cs - User API
Backend/Controllers/UserController.cs
Identity
- Register and login
Backend/Controllers/AuthController.cs - JWT tokens
Backend/Services/TokenService.cs
Persistence and domain
- EF Core context
Backend/Data/AppDbContext.cs - SQLite database
- Workout and exercise records
Backend/Models - Exercise data seeding
Backend/Data/Seed/DbSeeder.cs - Exercise seed data
Backend/Data/Seed/ExerciseSeed.cs
Other components
- Fitness user
Connections 22
- Fitness user → Home and discovery: views
frontend/src/app/home/page.tsx - Fitness user → Exercise library: browses
- Fitness user → Workout calendar: tracks workouts
- Fitness user → Login page: signs in
- Fitness user → Registration page: registers
- Home and discovery → Home cards: renders
frontend/src/app/home/page.tsx - Home and discovery → Header cards: renders
frontend/src/app/home/page.tsx - Home and discovery → Personal cards: renders
frontend/src/app/home/page.tsx - ASP.NET API runtime → Register and login: routes requests
Backend/Program.cs - ASP.NET API runtime → Workout and comments API: routes requests
Backend/Program.cs - ASP.NET API runtime → Exercise API: routes requests
Backend/Program.cs - Register and login → EF Core context: reads and writes
Backend/Controllers/AuthController.cs - Register and login → JWT tokens: creates token
Backend/Controllers/AuthController.cs - ASP.NET API runtime → JWT tokens: registers service
Backend/Program.cs - Workout and comments API → EF Core context: reads and writes
Backend/Controllers/WorkoutController.cs - Exercise API → EF Core context: queries exercises
Backend/Controllers/ExerciseController.cs - ASP.NET API runtime → EF Core context: configures SQLite
Backend/Program.cs - EF Core context → SQLite database: persists records
- EF Core context → Workout and exercise records: maps entities
Backend/Data/AppDbContext.cs - ASP.NET API runtime → Exercise data seeding: seeds at startup
Backend/Program.cs - Exercise data seeding → EF Core context: populates database
Backend/Data/Seed/DbSeeder.cs - Exercise data seeding → Exercise seed data: loads exercise data
Backend/Data/Seed/DbSeeder.cs