How johanros21/colegioguadalupepagina works
1. This repository is an ASP.NET Core MVC website for the school landing page, despite the README mentioning Next.js/Django. The actual codebase is a server-rendered .NET web app centered on Razor views.
2. The application entry point is Program.cs, which wires up the MVC pipeline, static file serving, and routing. The solution is a single web project: ColegioGuadalupePagina.
3. The main server-side boundary is the controller layer:
- HomeController for the public home and privacy pages
- CuerpoController for institutional content pages
- LoginController for the login/intranet entry page
4. The view layer is organized by controller name under Views/, with a shared layout in Views/Shared/_Layout.cshtml. That layout likely provides the common header, navigation, and footer used across all pages.
5. The site pages are mostly informational and static: Index, Privacy, Nosotros, Informacion, Contactanos, Recuerdos, and Inicio under login. This suggests a brochure-style institutional site with an access point for intranet users rather than a data-heavy application.
6. There is no visible service layer, repository layer, or database model layer. The only model present is ErrorViewModel, which is used for standard ASP.NET error handling. Architecturally, the app is thin on backend business logic.
7. All client assets live in wwwroot/, split into:
- css/ for page-specific styling (main.css, login.css, contact.css, galeria.css, site.css)
- js/ for UI behavior (menu.js, scroll.js, desplazador.js, site.js)
- images/ for media
- lib/ for third-party frontend packages
8. The frontend depends on Bootstrap, jQuery, and jQuery Validation / Unobtrusive Validation. That indicates conventional MVC form handling and responsive layout, with minimal custom JavaScript layered on top.
9. The data flow is straightforward: browser request → MVC route → controller action → Razor view → shared layout + CSS/JS assets → rendered HTML back to the browser. Most pages appear to be rendered from static templates rather than populated from APIs or a database.
10. Configuration is environment-based through appsettings.json and appsettings.Development.json, with launchSettings.json for local startup. There are no visible integrations with external services, APIs, or persistence systems in the repository structure.
11. For an architecture diagram, the important boxes are: browser/client, ASP.NET Core MVC app, controller/view layer, shared layout, and static asset bundle. The main boundary to note is that all content delivery is internal to the web app; there is no separate backend API in this repo.
Main entry points: _Layout.cshtml Shared layout · Program.cs Program · ColegioGuadalupePagina.csproj App project · HomeController.cs Home controller
Components 18
ASP.NET Core app
Single server-rendered MVC website
- Program · Configures MVC, static files, and routing
ColegioGuadalupePagina/Program.cs - App project · Single ASP.NET Core MVC site project
ColegioGuadalupePagina/ColegioGuadalupePagina.csproj
Server-side MVC
Entry point, controllers, and Razor views
- Home controller · Public landing and privacy pages
ColegioGuadalupePagina/Controllers/HomeController.cs - Cuerpo controller · Institutional content pages
ColegioGuadalupePagina/Controllers/CuerpoController.cs - Login controller · Login or intranet entry page
ColegioGuadalupePagina/Controllers/LoginController.cs - Home views · Index and privacy pages
ColegioGuadalupePagina/Views/Home/Index.cshtml - Cuerpo views · Nosotros, Informacion, Contactanos, and Recuerdos pages
ColegioGuadalupePagina/Views/Cuerpo/Nosotros.cshtml - Login view · Login and intranet entry page
ColegioGuadalupePagina/Views/Login/Inicio.cshtml - Shared layout · Common header, navigation, and footer
ColegioGuadalupePagina/Views/Shared/_Layout.cshtml - Error view · Standard ASP.NET error page
ColegioGuadalupePagina/Views/Shared/Error.cshtml - Error model · Data used by the error page
ColegioGuadalupePagina/Models/ErrorViewModel.cs
Frontend assets
Static CSS, JS, and third-party libraries
- Static files · Served CSS, JavaScript, images, and libraries
ColegioGuadalupePagina/wwwroot - Site styles · Shared site styling
ColegioGuadalupePagina/wwwroot/css/site.css - Page styles · Main, login, contact, and gallery styles
ColegioGuadalupePagina/wwwroot/css/main.css - UI scripts · Menu, scrolling, and page behavior
ColegioGuadalupePagina/wwwroot/js/site.js - Bootstrap · Responsive layout and components
ColegioGuadalupePagina/wwwroot/lib/bootstrap/dist/js/bootstrap.js - jQuery stack · jQuery and validation helpers
ColegioGuadalupePagina/wwwroot/lib/jquery/dist/jquery.js
Other components
- Browser · Users request pages and receive rendered HTML
Connections 24
- Browser → Program: HTTP request · Browser requests hit the ASP.NET Core host
- Program → Home controller: routes to · Maps home URLs to the home controller
- Program → Cuerpo controller: routes to · Maps institutional content URLs to Cuerpo actions
- Program → Login controller: routes to · Maps login entry URLs to the login controller
- Home controller → Home views: renders · Returns home Razor views
- Cuerpo controller → Cuerpo views: renders · Returns informational content views
- Login controller → Login view: renders · Returns the login/intranet entry view
- Home views → Shared layout: uses layout · Home pages share the common site shell
- Cuerpo views → Shared layout: uses layout · Content pages share the common site shell
- Login view → Shared layout: uses layout · Login page also uses the shared shell
- Shared layout → Site styles: includes · Shared layout pulls in global styling
- Shared layout → Page styles: includes · Layout references page-specific styles
- Shared layout → UI scripts: includes · Layout loads site behavior scripts
- Shared layout → Bootstrap: depends on · Layout uses Bootstrap for responsive UI
- Shared layout → jQuery stack: depends on · Layout uses jQuery and validation helpers
- Program → Static files: serves · Enables static file delivery from wwwroot
- Error view → Error model: binds · Error view is backed by the error model
- Program → Error view: fallback view · ASP.NET Core can render the shared error page
- App project → Program: contains · Project contains the application entry point
- App project → Home controller: contains · Project contains the home controller
- App project → Cuerpo controller: contains · Project contains the Cuerpo controller
- App project → Login controller: contains · Project contains the login controller
- App project → Shared layout: contains · Project contains the shared Razor layout
- App project → Static files: contains · Project contains all static assets