abpframework / abp

Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
https://abp.io
GNU Lesser General Public License v3.0
12.73k stars 3.41k forks source link

Add a CRUD page to ABP templates #18423

Open ebicoglu opened 9 months ago

ebicoglu commented 9 months ago

In Astro templates, there's an examples folder for fast onboarding. We can put a page like Books with insert, update, delete, and read functions. so that newbies can quickly understand the basics of a CRUD page. The CRUD page will be located in all the templates (Blazor, Angular, MVC). Share your ideas please...

rqx110 commented 9 months ago

maybe we can provider a cli option, like --sample-pages to create sample pages.

maliming commented 9 months ago

We can provide a simple module containing CRUD page and add it to the start template as a source code reference.

hikalkan commented 9 months ago

maybe we can provider a cli option, like --sample-pages to create sample pages.

I aggree on that, if we want to implement. Astro is just UI, adding a page that is easy to remove or modify. But, if we do it, we will include everything (db migrations, entities, services, scripts, ...) which will not be easy to remove. So, if we do it, we should do it optional. But I think it will bring us more maintainability issues and we should not do it. Anyone can easily create such a page by following the tutorial, so they can learn how to do it. Just want to see a pre-implemented one? Go to samples: https://github.com/abpframework/abp-samples/tree/master/BookStore-Mvc-EfCore

leonkosak commented 9 months ago

Agree @hikalkan!

@ebicoglu: We are using Astro for our company website and also for user documentation (for abp-based application). https://astro.new/ Starlight really rocks for our needs. Compilation is fast, hosting for free (GH Pages or Cloudflare Pages), SEO-friendly, ultra-fast loading times,....