Slide 1

Slide 1 text

Click here to watch the recording of this talk …

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

The JavaScript Ecosystem is like the Universe... © Casey Hroner – Unsplash.com

Slide 4

Slide 4 text

© NASA– Unsplash.com It hosts developers 16M From 1.9 billion websites, 98% use JavaScript

Slide 5

Slide 5 text

JavaScript is everywhere © Adi Goldstein - Unsplash.com

Slide 6

Slide 6 text

https://developer.microsoft.com/javascript/ JavaScript Developer Hub @Microsoft

Slide 7

Slide 7 text

Natalia Vendi+o Principal Lead e2e JavaScript DX on Azure Your hosts today @anfibiacrea*va Attribution: This talk was first delivered by @anfibiacreativa and @nitya as the Opening Keynote for #JSOnAzure Global Hack – Aug 16, 2023 Nitya Narasimhan Senior Cloud Advocate JavaScript on Azure @nitya

Slide 8

Slide 8 text

Validate setup with GitHub Codespaces 1. Visit - https://aka.ms/contoso-real-estate/github 2. Fork the repo (and give us a star!) 3. Launch Codespaces on `main` branch Setup takes around 10 minutes to complete – and will help ensure your development environment is ready for the hackathon. We will have a checkpoint later for questions. 👉 👉 Need help or have questions? https://aka.ms/contoso-real-estate/discussions Code to Azure: Want to get a head start? Quickstart

Slide 9

Slide 9 text

Learning to Build Complex Apps is Hard! QuickStart – validate dev environment How-To – learn to use core features or tools The Missing Trail – how do I go from building blocks ⬆ to building apps ⬇ Real-World App – build a secure, scalable, multi-scenario, multi-team solution that is reliable, performant! We need a paved path that explains “the small details”. 👩💻 🤦 🙋

Slide 10

Slide 10 text

Hello, Contoso Real Estate Sample! Let’s define a paved path for JavaScript developers to build an end-to-end composable architecture on Azure! And let’s use best-in-class Azure services and Developer Tools to enhance end-to-end developer experience (DX) q Define – Prioritized Scenarios q Develop – Composable Architecture q Deploy – Cloud-native, Serverless, Azure q Deliver – Architecture, Docs, Dev Experience

Slide 11

Slide 11 text

Contoso Real Estate In a Nutshell

Slide 12

Slide 12 text

Azure Compute Decisions What works best for this use case? • Full-stack static JavaScript applications • Event-driven workloads • Short-lived, stateless tasks • Unstructured data • Intelligent search • Containerized 3rd party APIs

Slide 13

Slide 13 text

Azure Storage Decisions What about our data and storage needs? • Unstructured blob storage – static files • Structured data storage – dynamic activity • Secrets storage – keys and credentials • Content Management System – blog • Application Insights – log analytics

Slide 14

Slide 14 text

Why Serverless (On Azure)? Use case: We are developing and deploying an applica3on that introduces new features and capabili3es to an exis3ng pla;orm, the Contoso pla;orm. Serverless means using cloud-provider managed services while you focus on application logic. Get auto-scaling (up or down to zero) and cost-effective pricing (pay as you go, for what you use) See: https://aka.ms/cloud-native/serverless

Slide 15

Slide 15 text

Why Composable Enterprise Architecture? 1. Build The Blog 2. Add Portal 3. Add Auth 4. Add Payment 5. Add Search 6. Add Events 7. Add Caching Secure

Slide 16

Slide 16 text

Serverless Hero Services Azure Container Apps A fully managed Kubernetes-based application platform to deploy apps. Azure Cosmos DB Fully managed and distributed serverless database for high-performance apps. Azure Functions Serverless development experience for event triggers and data bindings. Azure Static Web Apps Build and deploy serverless full-stack applications in a managed environment.

Slide 17

Slide 17 text

Serverless Fully managed Scales down to zero Reduced TCO (Total Cost of Ownership)

Slide 18

Slide 18 text

Azure OpenAI Service Large scale generative AI models that enable apps with new reasoning capabilities. GitHub Copilot The world's most trusted and widely used AI development assistant tool. Serverless + Intelligent Apps Using AI to improve the developer experience for authoring, tes9ng, debugging and task automa9on Using AI to improve the end-user experience by integra9ng AI-generated content, AI-driven conversa9ons and AI-enabled sugges9ons

Slide 19

Slide 19 text

What's new! © Kelli McClintock – Unsplash.com

Slide 20

Slide 20 text

Azure SDK for JavaScript | OpenAI Libraries - OpenAI API azure-sdk-for-js/sdk/openai/openai at main · Azure/azure-sdk-for-js (github.com)

Slide 21

Slide 21 text

Azure | Node.js LTS Node.js version 20 will be available in public preview for Azure func*ons, this September.

Slide 22

Slide 22 text

Azure Functions | Node.js programming model v.4 Migrate apps from Azure Functions version 3.x to 4.x | Microsoft Learn) Step by step guide to migrating from v.3 to v.4 for Contoso Real Estate Azure Functions: Version 4 of the Node.js programming model is in preview - Microsoft Community Hub

Slide 23

Slide 23 text

Azure Static Web Apps | Next.js hybrid rendering Next.js support on Azure Static Web Apps | Microsoft Learn Tutorial: Deploy hybrid Next.js websites on Azure Static Web Apps | Microsoft Learn

Slide 24

Slide 24 text

Azure Cosmos DB | Data API Builder Announcing Data API builder for Azure Cosmos DB - (microsoft.com) azure-sdk-for-js/sdk/cosmosdb/cosmos/README.md at main · Azure/azure- sdk-for-js (github.com) https://aka.ms/Vercel-Integration | Diagnostic logs using JavaScript SDK | Vercel seamless integration

Slide 25

Slide 25 text

Playwright Reliable, E2E Testing for Modern Web Apps playwright.dev | Read the Docs dev.to/playwright | Catch up on News aka.ms/playwright/discord | Community github.com/microsoft/playwright | Repo Cross-Browser Cross-Language

Slide 26

Slide 26 text

Stop Your Running Codespaces (cost optimization) Code to Azure: Development Walkthrough Checkpoint 👉 👉 Need help or have questions? https://aka.ms/contoso-real-estate/discussions

Slide 27

Slide 27 text

Deploy Author Test Develop Code to Azure: Developer Tooling

Slide 28

Slide 28 text

Deploy App with Azure Developer CLI You will need an active Azure subscription to try this on your own later. Please refer to the documentation for a discussion on costs and suitable regions for successful deployment. Code to Azure: Deployment Guidelines

Slide 29

Slide 29 text

Discover, Use & Deploy Templates The awesome-azd gallery provides a quick look-up directory for discovering AZD- compliant templates for various languages and architectures. Find featured templates – or contribute your own https://aka.ms/awesome-azd Code to Azure: AZD Templates Gallery

Slide 30

Slide 30 text

Why Azure Developer CLI? Seamless Developer Experience From local development (code) to Azure deployment (cloud) in one step Infrastructure As Code Infrastructure as code (files) enable version control. Declarative IaC enables repeatability and reusability Code to Azure: Deployment Guidelines

Slide 31

Slide 31 text

Docs | Tutorial Learn to deploy existing AZD Template Code to Azure: Keep on learning IaC Training | Learn Path Learn to build your first AZD Template! https://learn.microsoft.com/training/paths/azure-developer-cli/

Slide 32

Slide 32 text

Open-Source Contribution Guidelines Visit - https://aka.ms/contoso- real-estate-github Login and fork the repo Launch Codespaces on `main` branch And start contributing, today!

Slide 33

Slide 33 text

The following videos show you the flow to get your app up and running! Code to Azure: Development Walkthrough

Slide 34

Slide 34 text

Verify that your Codespaces built correctly Code to Azure: Development Walkthrough Checkpoint

Slide 35

Slide 35 text

Install App Dependencies npm run clean:install Code to Azure: Development Walkthrough

Slide 36

Slide 36 text

Run Local Dev Server npm start Code to Azure: Development Walkthrough

Slide 37

Slide 37 text

Preview In Dev Server 9 ports active Contoso User Experience Code to Azure: Development Walkthrough

Slide 38

Slide 38 text

Verify the active ports 9 ports forwarded and active Code to Azure: Development Walkthrough

Slide 39

Slide 39 text

You are setup to continue exploring and creating on your own Code to Azure: Development Walkthrough

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

! " #