<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rasiuddin Khan on Medium]]></title>
        <description><![CDATA[Stories by Rasiuddin Khan on Medium]]></description>
        <link>https://medium.com/@rasiuddin?source=rss-9620b4c49cda------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*_jGUCfdoq-SeVaGi</url>
            <title>Stories by Rasiuddin Khan on Medium</title>
            <link>https://medium.com/@rasiuddin?source=rss-9620b4c49cda------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 06:39:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rasiuddin/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Top 5 Passive Income Generators for 2025]]></title>
            <link>https://medium.com/@rasiuddin/as-the-digital-economy-continues-to-grow-and-evolve-passive-income-streams-have-become-an-544c1e0231c2?source=rss-9620b4c49cda------2</link>
            <guid isPermaLink="false">https://medium.com/p/544c1e0231c2</guid>
            <dc:creator><![CDATA[Rasiuddin Khan]]></dc:creator>
            <pubDate>Sat, 28 Dec 2024 09:05:50 GMT</pubDate>
            <atom:updated>2024-12-28T10:17:34.066Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Top 5 Passive Income Generators for 2025</strong></p><p>As the digital economy continues to grow and evolve, passive income streams have become an increasingly popular avenue for achieving financial freedom. By 2025, advancements in technology, market trends, and innovative platforms are creating even more opportunities to earn money passively. Here are the top five passive income generators to explore in 2025:</p><p><strong>1. Dividend-Paying Stocks</strong></p><p>Investing in dividend-paying stocks remains one of the most reliable ways to generate passive income. Companies with a history of consistent dividend payments offer a stable income stream, regardless of stock price fluctuations.</p><ul><li>Why It’s Great in 2025: With market predictions indicating steady growth in major industries like tech and green energy, dividend stocks provide a low-risk and consistent return.</li><li>How to Start: Use platforms like Robinhood, ETRADE, or Fidelity to build a portfolio of high-yield dividend stocks.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*dWQzDTyY5Kchtn5s7AH7MA.jpeg" /></figure><p><strong>2. Real Estate Crowdfunding</strong></p><p>Real estate continues to be a lucrative investment, but crowdfunding platforms have revolutionized access to property investments. Platforms like Fundrise and Crowdstreet let you invest in real estate projects with minimal upfront capital.</p><ul><li>Why It’s Great in 2025: Rising urbanization and demand for rental properties make real estate crowdfunding a solid bet.</li><li>How to Start: Research reputable crowdfunding platforms, analyze their investment offerings, and allocate funds strategically.</li></ul><p><strong>3. Print-on-Demand and Digital Products</strong></p><p>The rise of e-commerce and creator-friendly platforms makes selling print-on-demand merchandise or digital products one of the easiest ways to earn passive income.</p><ul><li>Why It’s Great in 2025: Platforms like Etsy, Teespring, and Gumroad make it easy to design and sell products without handling inventory or logistics.</li><li>How to Start: Use tools like Canva to create designs, then upload them to your chosen platform.</li></ul><p><strong>4. Peer-to-Peer Lending</strong></p><p>P2P lending allows you to lend money directly to borrowers in exchange for interest payments. Platforms like LendingClub and Prosper make it simple to connect with borrowers.</p><ul><li>Why It’s Great in 2025: The rise of AI-powered credit assessments has lowered risks and made lending opportunities more profitable.</li><li>How to Start: Create an account on a P2P lending platform, assess risk levels for different borrowers, and start lending.</li></ul><p><strong>5. Automated Cryptocurrency Staking</strong></p><p>Cryptocurrency staking is a method of earning rewards by holding and supporting the operations of a blockchain network. As the crypto market matures, automated staking platforms are making it easier than ever to earn passive income from digital assets.</p><ul><li>Why It’s Great in 2025: Newer, energy-efficient blockchains like Ethereum 2.0 and Cardano have increased staking profitability while reducing environmental impact.</li><li>How to Start: Use platforms like Coinbase or Binance to stake cryptocurrencies securely.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*bXhMAKhGQ92P829J8-LHzw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=544c1e0231c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Generate high-quality C# clean architecture code to accelerate production.]]></title>
            <link>https://medium.com/@rasiuddin/generate-high-quality-c-clean-architecture-code-to-accelerate-production-f6bd63c0790d?source=rss-9620b4c49cda------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6bd63c0790d</guid>
            <category><![CDATA[application-development]]></category>
            <category><![CDATA[abp-framework]]></category>
            <category><![CDATA[clean-architecture]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[c-sharp-programming]]></category>
            <dc:creator><![CDATA[Rasiuddin Khan]]></dc:creator>
            <pubDate>Sat, 15 Jul 2023 12:37:45 GMT</pubDate>
            <atom:updated>2023-07-15T12:37:45.081Z</atom:updated>
            <content:encoded><![CDATA[<p>Use the below NuGet package and architecture to generate the code along with the project file structure.</p><p><strong>1-</strong> <strong><em>Best Way to generate clean architecture code.</em></strong></p><p><strong><em>2-</em></strong><em> </em><strong><em>ABP architecture.</em></strong></p><p><strong><em>Introduction:</em></strong></p><p>In modern software development, adhering to architectural best practices is crucial for building scalable and maintainable applications. One popular architectural approach is Clean Architecture, which promotes the separation of concerns and loose coupling between different layers of the application. To streamline the development process and save valuable time, I present a powerful code generator designed specifically for .NET Core projects that follows the Clean Architecture style and save your lots of time. You can use ABP architecture too to generate High-quality code with best practices.</p><p><strong><em>Key Features:</em></strong></p><p><strong>Domain Project Generation:</strong> The code generator automatically creates a Domain project, which serves as the core of your application. It generates entity classes that encapsulate the business logic and data models. These entities act as the foundation for building the application’s functionality.</p><p><strong>Application Project Generation:</strong> The generator also generates an application project that contains interfaces for repositories and services. These interfaces define contracts for data access and business logic operations. By separating the interfaces from their implementations, the generator promotes code decoupling and facilitates easy testing and swapping of implementations when needed.</p><p><strong>Persistence Project Generation:</strong> To handle data storage and retrieval, the code generator creates a Persistence project. This project includes an ApplicationDbContext, which is responsible for managing the application’s data access operations. Additionally, the generator automatically generates repository implementations that interact with the underlying data storage.</p><p><strong>WebAPI or WebMVC Project Generation:</strong> To expose the application’s functionality to clients, the code generator generates controllers for each entity in either a <strong>WebAPI</strong> or <strong>WebMVC</strong> project. These controllers provide the necessary endpoints to perform CRUD operations on the entities. With this automated generation, developers can quickly set up a robust API layer or MVC application without spending time on repetitive boilerplate code.</p><p><strong><em>Benefits:</em></strong></p><p><strong>Accelerated Development:</strong> By automating the creation of essential project components, the code generator significantly speeds up the development process. Developers can focus more on implementing business logic and less on setting up infrastructure code.</p><p><strong>Consistent Architecture:</strong> The code generator enforces a Clean Architecture style throughout the generated codebase. This consistency ensures that all generated projects adhere to the same architectural principles, promoting maintainability and reducing technical debt.</p><p><strong>Flexibility and Extensibility:</strong> While the code generator provides a solid foundation for your application, it doesn’t impose rigid constraints. Developers can customize the generated code to fit their specific requirements, allowing for flexibility and extensibility.</p><p><strong><em>Conclusion:</em></strong></p><p>With the .NET Core Clean Architecture code generator, developers can streamline the development of scalable and maintainable applications. By automating the creation of key project components, the generator eliminates repetitive and error-prone tasks, allowing developers to focus on implementing business logic. Embracing the Clean Architecture principles, the code generator promotes loose coupling and separation of concerns, resulting in robust and testable applications. Try out this powerful tool and experience the benefits of accelerated development and consistent architecture in your .NET Core projects.</p><p><strong>1<em>-</em></strong><em> </em><strong><em>Generate clean architecture code using “Thomson Mathews” NuGet package.</em></strong></p><p>You can use the NuGet package to install the template and you can search this package using manage NuGet packages by searching for “Thomson Mathews” or Clean_Architecture_Program_Generator_for_CSharp_and_NET6.</p><p>Better to clone the project directly using the below NuGet package or create an empty solution and add the NuGet package.</p><p>https://github.com/tcj2001/Clean_Architecture_Program_Generator_for_CSharp_and_NET6</p><p>or create the empty solution and add the NuGet package to your solution.</p><figure><img alt="NuGet Package Images" src="https://cdn-images-1.medium.com/max/953/1*0RWzRg8-Icxk5KL0WRxwVg.png" /></figure><p>The below template will be installed in your project.</p><p>a-<em> </em><strong><em>Clean Architecture Database Access Generator.t</em></strong></p><p><strong><em>b- Clean Architecture WebAPI Generator.tt</em></strong></p><p><strong><em>c- Clean Architecture WebMVC Generator.tt</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*_-UOHJ1zd6w-AxedMDRJ4w.png" /><figcaption>Solution Explorer Images</figcaption></figure><p><strong><em>Once the template files are installed run the below.</em></strong></p><p>Run Clean Architecture Database Access Generator.tt template by right clicking on the template and select <strong>Run Custom Tool</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*hFSeCiNfaaS52oP1lkFAmA.png" /></figure><p>Below CR code Projects Generated Automatically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*As2Q76NqRADanIKCljoQ2Q.png" /></figure><p>To define entities in the Domain Project’s ‘entities’ folder, you can opt for either the code-first approach or the database-first approach. Additionally, create the ApplicationDbContext in the Persistence project’s ‘context’ folder, and you have the flexibility to customize or modify the Template before initiating the development of Web or API projects.</p><p><strong><em>Run Clean Architecture Database Access Generator.tt:</em></strong></p><p>Execute this generator to generate repositories and services for each entity. This step sets up the database access layer for your Clean Architecture project. You can find the below screenshot once the code is generated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*ppVHcfWIMThim3W6qr1dwA.png" /></figure><p><strong><em>Run Clean Architecture WebAPI Generator.tt:</em></strong></p><p>Run this generator to create API controllers in the WebAPI project. This will generate the necessary code to handle HTTP requests and responses.</p><p><strong>Note: </strong>Before generating the <strong>WebAPI </strong>you have to create all the required models. Let’s see if you are missing any models or you want to add any new models you can add and repeat the process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*zaX14bL6rLoLDGLzhpHoZA.png" /></figure><p><strong><em>Run Clean Architecture WebMVC Generator.tt:</em></strong></p><p>Use this generator to generate MVC controllers in the WebMVC project. It will create the controllers that handle user interface interactions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*jPUEmNBHVjlXjcp1SNtRPw.png" /></figure><p><strong>Set WebAPI or WebMVC as the startup project:</strong></p><p>Choose either the WebAPI or WebMVC project as the startup project, depending on your preferred type of application (API or MVC).</p><p><strong><em>For additional entities:</em></strong></p><p>If you add more entities to your application, repeat steps 1, 2, and 3 by running the respective generators again. This ensures that the new entities’ repositories, services, API controllers (for WebAPI), and MVC controllers (for WebMVC) are all generated and integrated into the project.</p><p>Change the DB connection string in <strong>appsetting</strong> like below screenshot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*dNoRuc0vG2VrLNPguP1j5A.png" /></figure><p>Once MVC or WebAPI or Both are Added successfully. Please build and add the Migration.</p><p><em>- </em><strong><em>Add migration “Initial Migration”.</em></strong></p><p>Once migration is done successfully update the database command.</p><pre>-   Update-Database</pre><p>After the migration is successfully completed, you can verify whether the following database and table have been created accordingly:</p><p><strong>[NewOPDB]</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/398/1*j--DU8FqLrvvMICATqWJEA.png" /><figcaption>DB Structure after migration</figcaption></figure><p><strong><em>2-</em></strong><em> </em><strong><em>ABP architecture.</em></strong></p><p>ABP CLI is a command line interface that is used to automate some common tasks for ABP-based solutions. First, you need to install the ABP CLI using the following command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*vHN-3lar9u3DGW5-RkMkag.png" /></figure><p>The layering of an application’s codebase is a widely accepted technique to help reduce complexity and improve code reusability. To achieve a layered architecture, ASP.NET Boilerplate follows the</p><p>principles of Domain Driven Design.</p><p><strong>Domain Driven Design Layers:</strong> There are four fundamental layers in Domain Driven Design (DDD):</p><p>Presentation Layer: Provides an interface to the user. Uses the Application Layer to achieve user interactions.</p><p><strong>Application Layer:</strong> Mediates between the Presentation and Domain Layers. Orchestrates business objects to perform specific application tasks.</p><p><strong>Domain Layer:</strong> Includes business objects and their rules. This is the heart of the application.</p><p><strong>Infrastructure Layer:</strong> Provides generic technical capabilities that support higher layers mostly using 3rd-party libraries. ASP.NET Boilerplate Application Architecture Model: In addition to DDD, there are also other logical and physical layers in a modern architected application. The model below is suggested and implemented for ASP.NET Boilerplate applications. ASP.NET Boilerplate not only makes implementing this model easier by providing base classes and services but also provides startup templates to directly start with this model.</p><p><strong>ASP.NET Boilerplate NLayer Architecture: </strong>Client Applications: These are remote clients that use the application as a service via HTTP APIs (API Controllers, OData Controllers, maybe even a GraphQL endpoint). A remote client can be a SPA (Single Page App), a mobile application, or a 3rd-party consumer. Localization and Navigation can be done inside these applications.</p><p><strong>Presentation Layer:</strong> ASP.NET [Core] MVC (Model-View-Controller) can be considered the presentation layer. It can be a physical layer (uses the application via HTTP APIs) or a logical layer (directly injects and uses application services). In either case, it can include Localization, Navigation, Object Mapping, Caching, Configuration Management, Audit Logging, and so on. It also deals with Authorization, Session, Features (for multi-tenant applications), and Exception Handling.</p><p><strong>Distributed Service Layer:</strong> This layer serves application/domain functionality via remote APIs like REST, OData, GraphQL, etc. They don’t contain business logic but only translate HTTP requests to domain interactions or can use application services to delegate the operation. This layer generally includes Authorization, Caching, Audit Logging, Object Mapping, Exception Handling, Session, and more.</p><p><strong>Application Layer:</strong> The application layer mainly includes Application Services that use the domain layer and domain objects (Domain Services, Entities…) to perform requested application functionalities. It uses Data Transfer Objects to get data from and return data to the presentation or distributed service layer. It can also deal with Authorization, Caching, Audit Logging, Object Mapping, the Session, and more.</p><p><strong>Domain Layer:</strong> This is the main layer that implements our domain logic. It includes Entities, Value Objects, and Domain Services to perform business/domain logic. It can also include Specifications and trigger Domain Events. It defines Repository Interfaces to read and persist entities from the data source (generally a DBMS).</p><p><strong>Infrastructure Layer:</strong> The infrastructure layer makes other layers work: It implements the repository interfaces (using Entity Framework Core, for example) to actually work with a real database. It may also include an integration to a vendor to send emails and perform other tasks. This is not a strict layer below all other layers, but it supports other layers by implementing the abstract concepts of them.</p><p>You can download the code from aspnetboilerplate website <a href="https://aspnetboilerplate.com/Templates">Startup Templates — Create a Demo | AspNet Boilerplate</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*L0avyITqURCq4m-88zBNGw.png" /></figure><p>Fill the below project details and download the ABP template and architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*SIT0i-BqzFtcwp1TPcipAQ.png" /></figure><p>After creating and downloading your project:</p><ul><li>Open your solution in Visual Studio 2022</li><li>Select the ‘Web’ project as the startup project.</li><li>Open the Package Manager Console, select the ‘EntityFramework’ project as the Default project and run EntityFramework’s ‘Update-Database’ command. This will create the database. You can then change the connection string in the web.config.</li><li>Run the application. The default username is ‘admin’ and the password is ‘123qwe’.</li></ul><p>Be sure you have installed Typescript 2.0+ in Visual Studio because the Abp.Web.Resources NuGet package comes with dots and it requires Typescript 2.0+.</p><p>In this template, multi-tenancy is enabled by default. You can disable it in the Core project’s module class if you don’t need it.</p><h3>Token-Based Authentication</h3><p>Bearer-token authentication is a common method of API authentication, where the client includes a token in the request’s “Authorization” header to access protected resources. The token is usually obtained from an authentication endpoint, such as the “Authenticate” action in the “Account Controller” of the .WebApi project in your startup template.</p><p>To demonstrate the process using Postman, follow these steps:</p><p>1- Open Postman: Make sure you have Postman installed as a Chrome extension or as a separate application.</p><p>2- Get the Bearer Token: First, you need to obtain the bearer token by making a POST request to the authentication endpoint (e.g., the “Authenticate” action in the “Account Controller” of the .WebApi project). You’ll likely need to provide credentials (username and password) in the request body.</p><p>3- Set the Authorization Header: Once you have the bearer token, copy it from the response and use it to set the “Authorization” header for subsequent requests. In Postman, you can add a new header with the key “Authorization” and the value “Bearer [your_token_here]”.</p><p>4- Make API Requests: Now that you have the token in the Authorization header, you can send various HTTP requests (GET, POST, PUT, DELETE, etc.) to consume the Web APIs or application services. The server will validate the token and grant access to protected resources if the token is valid.</p><p>5- Observe Responses: Postman will display the responses from the server for each request you make. You can check the status codes, response bodies, and headers to ensure the requests are working as expected.</p><p>Remember to include the correct API endpoints in the URL and provide any required parameters in the request body or URL query string, depending on the API’s specifications.</p><p>Please note that the exact implementation details may vary depending on the specific startup template and APIs you are using. Also, always ensure you follow proper security practices when handling authentication tokens and sensitive information.</p><p>Top of Form</p><p>Regenerate response</p><h4>Authentication</h4><p>Just send a POST request to <a href="http://localhost:6634/api/Account/Authenticate">http://localhost:6634/api/Account/Authenticate</a> with the Context-Type=”application/json” header as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*uRSH-fOdPy1hLmOn2Lz2Kw.png" /></figure><p>We sent a JSON request body which includes a userNameOrEmailAddress and password. tenancyName should also be sent for tenant users. As seen above, the result property of the returning JSON contains the token. We can save it and use it for the next requests.</p><h4>Use API</h4><p>After we authenticate and get the token, we can use it to call authorized actions. All application services can be used remotely. For example, we can use the user service to get a list of roles:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*UP1iutvzAZRVSE19EbOI4g.png" /></figure><p>We just made a POST request to <a href="http://localhost:6634/api/services/app/user/GetRoles">http://localhost:6634/api/services/app/user/GetRoles</a> with Content-Type=”application/json” and Authorization=”Bearer <em>your-</em> <em>auth-token</em> “ headers. The request body was empty {}. For the most part, request and response bodies will be different for each API.</p><p>Almost all operations available on the UI are also available as a Web API, since the UI uses the same Web API, and can be easily consumed.</p><h3>Migrator Console Application</h3><p>The startup template includes a tool, Migrator.exe, to easily migrate your databases. You can run this application to create/migrate the host and tenant databases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*vbmOrLk9l9PmlAR21JTE-Q.png" /></figure><p>This application gets the host connection string from it’s own appsettings.json file. In the beginning, it will be the same in the appsettings.json in the .Web.Host project. Be sure that the connection string in the config file is the database you want. After getting the host connection string, it first creates the host database and applies migrations if they don’t already exist. It then gets the connection strings of the tenant databases and runs migrations against those databases. It skips a tenant if it does not have a dedicated database or its database has already been migrated by another tenant (for shared databases between multiple tenants).</p><p>You can use this tool on the development or on the production environment to migrate databases on deployment instead of EntityFramework’s own tooling (which requires some</p><p>Below screenshot from the project explorer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*sdDyj9Sw5r0Jl3pL8Z0VIQ.png" /></figure><p>Find more details here: https://docs.abp.io/en/abp/latest/Getting-Started-Create-Solution?UI=MVC&amp;DB=EF&amp;Tiered=No</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6bd63c0790d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>