Skip to content

Add admin CMS, EF Core data layer, site controllers, views, and services#7

Merged
Code-311 merged 2 commits into
finalfrom
codex/create-final-branch-and-rebuild-asp.net-core-mvc-site
Mar 10, 2026
Merged

Add admin CMS, EF Core data layer, site controllers, views, and services#7
Code-311 merged 2 commits into
finalfrom
codex/create-final-branch-and-rebuild-asp.net-core-mvc-site

Conversation

@Code-311
Copy link
Copy Markdown
Owner

Motivation

  • Introduce a simple content management area and data model to manage essays, models, tools, media, assets, and static pages.
  • Provide server-side rendering for public pages and an admin UI with authentication and CRUD flows.
  • Add persistence using EF Core with sensible configurations and a development in-memory database plus PostgreSQL support for production.
  • Provide utilities for rendering Markdown and storing uploaded assets to support authored content.

Description

  • Added a new ApplicationDbContext with entity configurations under Data/Configurations and domain entities under Models/Domain including Essay, FrameworkModel, Tool, MediaItem, UploadedAsset, StaticPage, and supporting base classes.
  • Implemented site controllers (WritingsController, ToolsController, ModelsController, MediaController, PagesController, AssetsController) and admin area controllers and viewmodels under Areas/Admin with corresponding Razor views and a simple admin layout.
  • Implemented services for Markdown rendering (IMarkdownRenderer / MarkdownRenderer) and asset persistence (IAssetService / AssetService), and hooked DI and Identity in Program.cs with cookie login at /account/login.
  • Added DatabaseSeeder to bootstrap roles, an admin user, and initial content; updated Program.cs to register services, wire areas routing, and run the seeder; updated project file with package references and added CSS/JS assets and a small SVG logo.

Testing

  • Built the project with dotnet build, which completed successfully.
  • No automated unit or integration tests were added in this change set.
  • The database seeder is invoked at startup via DatabaseSeeder.SeedAsync (manual/runtime verification recommended in dev environment).

Codex Task

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@Code-311 Code-311 merged commit 5705bff into final Mar 10, 2026
@Code-311 Code-311 deleted the codex/create-final-branch-and-rebuild-asp.net-core-mvc-site branch March 10, 2026 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant