- عنوان کتاب: ASP.NET Core in Action, Second Edition
- نویسنده: Andrew Lock
- حوزه: برنامه نویسی ASP.Net
- سال انتشار: 2022
- تعداد صفحه: 594
- زبان اصلی: انگلیسی
- نوع فایل: pdf
- حجم فایل: 9.28 مگابایت
در این کتاب، نحوه ساخت ASP.NET Core 2.2 MVC، Razor Page و API Web Applications را خواهید آموخت. Entity Framework Core 2.2 داده ها را مدیریت می کند. نماها و صفحات پروژه ها از Helpers Custom Tag، HTML و CSS برای نمایش محتوای خود استفاده می کنند. AutoMapper بین موجودیت ها و اشیاء انتقال داده (DTO) تبدیل می کند. JSON Web Tokens برای احراز هویت و مجوز دادن به کاربران در API استفاده خواهد شد.
مشتری یک برنامه کاربردی ویدیوی درخواستی (VOD) سفارش داده است و درخواست می کند که از جدیدترین فناوری ها برای ساخت راه حل استفاده شود. برنامه باید بتواند در فضای ابری اجرا شود، مبتنی بر وب باشد و بر روی هر دستگاهی اجرا شود. آنها به طور خاص خواسته اند که فناوری های مایکروسافت هسته اصلی راه حل هستند. از انحراف از آن مسیر بپرهیزید.
به عنوان اولین قدم، آنها میخواهند نسخه آزمایشی با استفاده از دادههای ساختگی داشته باشند تا احساسی نسبت به برنامه داشته باشند. هنگام ایجاد پایگاه داده SQL Server می توان داده های ساختگی را در جداول قرار داد.
از یوتیوب باید برای ذخیره ویدیوها استفاده شود تا هزینه ها کاهش یابد. هیچ API یا عملکردی برای آپلود ویدیو برای برنامه نهایی لازم نیست. کافی است مدیر بتواند در هنگام افزودن یک ویدیوی جدید با رابط کاربری ادمین، پیوندی به یک ویدیوی ذخیره شده در حساب YouTube ذخیره کند.
راه حل نهایی باید شامل پنج پروژه باشد: اولین مورد VOD.Common نامیده می شود و will شامل تمام کلاس های موجودیت، DTO ها و چند سرویس و همچنین کلاس های دیگر مشترک بین پروژه ها است. دوم پروژه VOD.Database است که شامل خدماتی برای دستکاری داده ها و عملیات CRUD و همچنین زمینه پایگاه داده و انتقال پایگاه داده است. سومین رابط کاربری برای کاربران عادی به نام VOD.UI است. برنامه چهارم VOD.Admin نام دارد و توسط مدیران برای انجام عملیات CRUD بر روی جداول در پایگاه داده استفاده می شود. پنجمین VOD.API نام دارد و برای انجام عملیات CRUD در پایگاه داده و همچنین ایجاد JSON Web Tokens استفاده می شود.
In this book, you will learn how to build ASP.NET Core 2.2 MVC, Razor Page, and API Web Applications. Entity Framework Core 2.2 handles the data. The views and pages of the projects use Custom Tag Helpers, HTML, and CSS to display their content. AutoMapper will convert between entities and Data Transfer Objects (DTOs). JSON Web Tokens will be used to authenticate and authorize users in the API.
The customer has ordered a Video on Demand (VOD) application and requests that the newest technologies are used building the solution. The application should be able to run in the cloud, be web-based, and run on any device. They have specifically asked that Microsoft technologies are the core of the solution. Avoid deviations from that path.
As a first step, they would like a demo version using dummy data to get a feel for the application. The dummy data can be seeded into the tables when creating the SQL Server database.
YouTube should be used to store the videos, to keep costs down. No API or functionality for uploading videos is necessary for the final application. It is enough for the administra-tor to be able to paste in a link to a video stored in a YouTube account when adding a new video with the admin user interface.
The finished solution should contain five projects: The first is called VOD.Common, and will contains all entity classes, DTOs, and a couple of services as well as other classes shared between the projects. The second is the VOD.Database project that contains services for data manipulation and CRUD operations as well as the database context and the database migrations. The third is a user interface for regular users called VOD.UI. The fourth application is named VOD.Admin and is used by administrators to perform CRUD operations on the tables in the database. The fifth is named VOD.API and is used to perform CRUD operations in the database as well as create JSON Web Tokens.
این کتاب را میتوانید از لینک زیر بصورت رایگان دانلود کنید:
Download: ASP.NET Core 2.2 MVC, Razor Pages, API, JSON Web Tokens & HttpClient
نظرات کاربران