Power Apps: Build Your First Code App
Power Apps
May 6, 2026 1:18 PM

Power Apps: Build Your First Code App

by HubSite 365 about Dhruvin Shah [MVP]

Microsoft MVP (Business Application & Data Platform) | Microsoft Certified Trainer (MCT) | Microsoft SharePoint & Power Platform Practice Lead | Power BI Specialist | Blogger | YouTuber | Trainer

Microsoft expert guide to PowerApps Code Apps: architecture, setup with VS Code Nodejs PAC CLI React to Power Platform

Key insights

  • Power Apps Code Apps — A pro-code app type in the Power Platform that lets developers build full web apps using code-first tools instead of the low-code Canvas approach.
    It gives full control of UI and logic while still deploying and running inside the Power Platform environment.
  • Code Apps vs Canvas Apps — Code Apps target professional developers and support frameworks like React or Vue; Canvas Apps target makers and use visual editors.
    Choose Code Apps when you need custom code, familiar web tooling, or tighter control over app behavior.
  • Prerequisites: VS Code, Node.js, Power Platform CLI — Install Visual Studio Code, the latest LTS Node.js, Git, and the Power Platform CLI (PAC) to start development.
    These tools let you scaffold, run, and deploy Code Apps from your local machine.
  • Enable Code Apps in Admin Center — Admins must enable the Code Apps feature per environment: go to Environment Settings → Product → Features and toggle "Power Apps code apps".
    Enablement enforces governance and controls which environments accept Code Apps.
  • Local development & deployment — Typical workflow: clone the starter template, run npm install, then use npm run dev to test locally and npm run build plus pac code push to deploy to Power Platform.
    Live editing works during local dev so you can iterate quickly before pushing changes.
  • Starter template & authentication — Begin with the provided React TypeScript template, set up PAC authentication, and connect to your target environment to access Dataverse and other data sources.
    This template speeds onboarding and shows how to wire platform services into a code-first app.

Introduction

This article summarizes Episode 1 of the PowerApps Code Apps series, a practical walkthrough published by Dhruvin Shah [MVP] that introduces developers to the new Power Apps Code Apps experience. In the video, Shah presents a step-by-step path from environment setup to deploying a first app on the Power Platform, and he emphasizes that the series is freely available. Therefore, this report focuses on the core lessons, the technical workflow, and the tradeoffs developers should expect when adopting a code-first approach. Moreover, it frames the material for readers who want a clear, actionable overview before watching the full tutorial.


What Power Apps Code Apps Are and Why They Matter

According to the video, Power Apps Code Apps represent Microsoft’s expansion of the Power Platform to include a pro-code development model that complements existing canvas and model-driven approaches. Shah explains that, unlike Canvas Apps, Code Apps let developers use standard web frameworks and local development tools to build full-featured applications that still run inside the Power Platform environment. As a result, organizations can combine the governance and data integration of Power Platform with the flexibility of traditional web development. Consequently, professional developers gain more control over UI, tooling, and testing while preserving platform-level capabilities.


Setup and First Steps

The video lays out three core prerequisites: installing VS Code, Node.js (LTS), and the Power Platform CLI (PAC CLI), then enabling the Code Apps feature in the Power Platform Admin Center. Shah demonstrates cloning a starter React template and configuring local authentication through the PAC CLI, which enables a local development loop using commands like npm run dev. He also walks viewers through building and deploying the finished app with npm run build and the PAC push workflow, so teams can move from local testing to production environments. These steps highlight how Code Apps integrate familiar development tooling with platform deployment mechanics.


Architecture and Developer Workflow

Shah outlines a simple architecture built on four pillars: modern web frameworks, local tooling, the PAC CLI, and the Power Platform hosting and governance layer. For example, the starter template uses React and TypeScript together with Vite as the build tool, enabling hot reload and fast iteration during development. Then, developers connect to Power Platform services such as Dataverse or Office 365 data sources, so the app can leverage existing enterprise data and security. Thus, the workflow mirrors traditional web development while integrating platform-specific features like environment-bound deployments.


Tradeoffs and Practical Challenges

While Code Apps deliver flexibility, Shah also touches on tradeoffs that organizations must consider, including governance, complexity, and maintenance overhead. For instance, pro-code apps require more developer skills and introduce dependencies like Node.js and build tooling, which can complicate onboarding compared with low-code alternatives. However, they also offer better version control, testing possibilities, and UI freedom, which can reduce long-term technical debt for complex projects. Therefore, teams should balance rapid low-code delivery against the long-term benefits of maintainable, testable code.


Governance, Security, and Best Practices

The video stresses the need to enable Code Apps at the environment level so administrators can enforce policies and manage which environments support pro-code development. Shah recommends adopting standard practices such as using service principals or PAC-authenticated accounts for deployment, maintaining clear environment boundaries, and documenting the CI/CD steps for builds and pushes. In addition, he notes that live editing and local debugging speed development, but organizations must combine these practices with access controls and auditing. Ultimately, teams that plan for governance from the start can gain the flexibility of Code Apps without sacrificing compliance or security.


Conclusion and Next Steps

Episode 1 serves as a focused, practical introduction for developers who want to adopt a code-first approach on the Power Platform, and Shah signals that the series will expand into deeper topics in future episodes. For readers considering this path, the most important next steps are enabling the feature in a controlled environment, installing the recommended tooling, and testing the starter template locally to understand the deployment lifecycle. In short, Power Apps Code Apps offer a compelling middle ground between platform governance and developer freedom, and Shah’s walkthrough helps teams weigh the tradeoffs and plan an informed adoption strategy.

Power Apps - Power Apps: Build Your First Code App

Keywords

PowerApps tutorial, Power Apps code apps, PowerApps beginner guide, Power Fx tutorial, PowerApps episode 1, Microsoft Power Platform, PowerApps development, PowerApps code examples