yc.boilerplate

2025-12-07 0 978

中文 |
English

Framework introduction

YC.Boilerplate is a set of rapid development framework, which adopts the current popular frontend and back-end separation development mode, with Vue 2.0 in the front end and net 5.0 in the back end; The framework implements Multi tenant, dynamic webapi, multiple ORM, IOC, database table and business code generation, and developed user management, role permissions, organization
General functions such as data dictionary and audit log.

The purpose of the framework is to build a model development framework with loose coupling, flexible combination, complete functions, convenient development and reducing development workload.

YC.boilerplate framework technology group QQ: 1060819005

Latest iteration

  1. Integrate docker related
  2. Built in docker container monitoring tool
  3. There are relevant packaged images in the group data
  4. Provide image deployment operation tutorial [see doc directory]
  5. New micro services: Ocelot gateway, consumer, load balancing, fuse, identityserver 4 identity authentication

Video tutorial

  • Introduction to the original center and frame design of yuanci force frame (Part I):< https://www.b*ilib**ili.com/video/BV1VM4y1G7hC/ >
  • Introduction to the original center and frame design of yuanci force frame (Part 2):< https://www.bili**bil*i.com/video/BV15h411s7w6/ >
  • Meta magnetic force framework database table and code generation tutorial practice:< https://www.bilibi***li.com/video/BV1oM4y137D5/ >
  • Introduction to microservice version experience:https://www.bilib**il*i.com/video/BV1X44y1a7xU?spm_id_from=333.999.0.0

Quick start

  1. [Online demonstration]( http://yc.**y*c-l.com/ )
  2. [online document]( http://doc.y*c**-l.com/ )
  3. Conventional front and rear end separation frame: front end: src\\front\\yc.webfront, back end: src\\backstage\\yc.boilerplate.sln
  4. See src\\microservice\\yc.microservice.sln for the framework microservice version
  5. The latest version of the framework has introduced elasticsearch and other big data suites to realize distributed retrieval, statistics and analysis of more than ten million levels. Please see the latest documentation for details.
  6. Initialize the database: src\\DB (tenant 1 and tenant 2 sub database presentation data)

Framework technology stack and development mode

  • Development mode: the current popular front and rear end separation.
  • Front end: vue2.0, elementui and other technology stacks, which provide project templates for single page applications.
  • The back end adopts net 5.0.

Frame features

  • Modular development, flexible combination, decoupling to the end, injection and use on demand.
  • The current popular development model has clear layers.
  • Cooperate with the built-in code generator of the framework to quickly complete the logic implementation of complex functions such as crud and tree without typing a line of code, saving 60% of the workload.

YC. Boilerplate framework layered introduction

General version framework hierarchy

  • Core layer: YC.Core mainly implements the top-level design class interface specification and encapsulation of some classes, such as tenant interface, aopinterceptor AOP interception injection, tokencontext token logic, public features, etc.
  • Data layer: YC.Dapperframework , YC.Freesqlframework multiple ORM packages, mainly including storage, work unit, etc.
  • Public layer: YC.Common is mainly used by various public classes.
  • Business service layer: YC.Applicationservice business logic implementation, which implements dynamic webapi by default.
  • Entity layer: YC.model regular data tables, entities, enumerations, etc., as well as the basic methods required by the regular model.
  • Business API layer: YC.Servicewebapi provides external interface service startup project.

Microservice version framework layering

  • Aggregation service layer: YC.Micro.Aggregateservicewebapi, multiple service fusion calls.
  • Common configuration layer: YC.Micro.Configuration common configuration layer.
  • Independent services: YC.Micro.Xxxwebservice specify the service.
  • Others: registration, fusing, load balancing, log operation and maintenance, identity authentication center, containerization, etc. Please look forward to it.
  • Other combinations: configuration center, consumer, load balancing, loadbalance, identity authentication center ids4, container docker.
  • Please look forward to log operation and maintenance, distributed transactions, etc.

Module layer (on demand)

  • Database table and code generation module: YC.codegenerate
  • Redis cache module: YC.cache.redis
  • Dynamic webapi module: YC.core.dynamicapi
  • Log module: YC.log.serial
  • Timing service quartz.net YC.quartzservice
  • Mongodb module YC.mongodb
  • Figure database neo4j YC.neo4j
    -Big data suite elasticsearch YC.elasticsearch

Unit test

Unit test: unittestproject
Database table and code generation test:

  • yc.codegeneratetest
    Unit tests for other modules:
  • YC.Quartztest
  • YC.Mongodbxunittest
  • YC.Neo4jxunittest
  • YC.Elasticsearchxunittest

FrameWork function module

FrameWork properties

  1. Based on the latest. Net technology net 5.0.
  2. Implement Domain Driven Design (entity, warehouse, domain service, domain event, application service, data transmission object, work unit, etc.).
  3. Implement layered architecture (domain layer, application layer, presentation layer and infrastructure layer).
  4. Provide an infrastructure to develop reusable and configurable modules.
  5. Integrate some of the most popular open source frameworks / libraries, perhaps some of which you are using.
  6. An infrastructure is provided to facilitate the use of dependency injection (using Autofac as the container for dependency injection).
  7. Provide repository storage mode to support different ORM (dapper framework, freesqlframework, redis, etc. have been implemented).
  8. Support and implement database migration (using free mapping table).
  9. Modular development (each module has its own, which adopts the form of Autofac module injection, and can dynamically switch the specified database according to different services).
  10. Unified exception handling (the application layer hardly needs to write its own exception handling code).
  11. Automatically create the web API layer through application services (there is no need to write the apicontroller layer).
  12. Providing base classes and help classes allows us to easily implement some common tasks.
  13. Use \”agreement over configuration principle\”.
  14. Realize multi tenancy, and divide the server according to different tenants.
  15. The corresponding whole process code is generated based on the table model, including model, dto, service, front-end display interface (conventional crud and tree functions), routing rules, mapper model and dto mapping.
  16. The framework has realized conventional basic functions, such as authentication user & role management, system setting, access management (system level, tenant level, user level, automatic scope management), audit log (automatically recording the callers and parameters of each interface), organization, etc., so as to realize the out of the box use of the framework.
  17. The framework uses redis as cache and session storage, which is separated from cookies to solve non web problems. The framework can also be used to transform various scene requirements.

Reward support

Donor Donation amount (¥)
小蚂蚁 66.66
张三家的猫 100
刘茜 99
ak11 8.8
弗拉门 200

Participation contribution

  1. Fork warehouse
  2. New feat_ XXX branch
  3. Submission code
  4. Create a new pull request

下载源码

通过命令行克隆项目:

git clone https://github.com/yc-l/yc.boilerplate.git

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

申明:本文由第三方发布,内容仅代表作者观点,与本网站无关。对本文以及其中全部或者部分内容的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。本网发布或转载文章出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,也不代表本网对其真实性负责。

左子网 开发教程 yc.boilerplate https://www.zuozi.net/31429.html

TinyWebServer
上一篇: TinyWebServer
CinemaWorld
下一篇: CinemaWorld
常见问题
  • 1、自动:拍下后,点击(下载)链接即可下载;2、手动:拍下后,联系卖家发放即可或者联系官方找开发者发货。
查看详情
  • 1、源码默认交易周期:手动发货商品为1-3天,并且用户付款金额将会进入平台担保直到交易完成或者3-7天即可发放,如遇纠纷无限期延长收款金额直至纠纷解决或者退款!;
查看详情
  • 1、描述:源码描述(含标题)与实际源码不一致的(例:货不对板); 2、演示:有演示站时,与实际源码小于95%一致的(但描述中有”不保证完全一样、有变化的可能性”类似显著声明的除外); 3、发货:不发货可无理由退款; 4、安装:免费提供安装服务的源码但卖家不履行的; 5、收费:价格虚标,额外收取其他费用的(但描述中有显著声明或双方交易前有商定的除外); 6、其他:如质量方面的硬性常规问题BUG等。 注:经核实符合上述任一,均支持退款,但卖家予以积极解决问题则除外。
查看详情
  • 1、左子会对双方交易的过程及交易商品的快照进行永久存档,以确保交易的真实、有效、安全! 2、左子无法对如“永久包更新”、“永久技术支持”等类似交易之后的商家承诺做担保,请买家自行鉴别; 3、在源码同时有网站演示与图片演示,且站演与图演不一致时,默认按图演作为纠纷评判依据(特别声明或有商定除外); 4、在没有”无任何正当退款依据”的前提下,商品写有”一旦售出,概不支持退款”等类似的声明,视为无效声明; 5、在未拍下前,双方在QQ上所商定的交易内容,亦可成为纠纷评判依据(商定与描述冲突时,商定为准); 6、因聊天记录可作为纠纷评判依据,故双方联系时,只与对方在左子上所留的QQ、手机号沟通,以防对方不承认自我承诺。 7、虽然交易产生纠纷的几率很小,但一定要保留如聊天记录、手机短信等这样的重要信息,以防产生纠纷时便于左子介入快速处理。
查看详情

相关文章

猜你喜欢
发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务