Coder Social home page Coder Social logo

gkknow / nodejs-appsvc-cosmosdb-bottleneck Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure-samples/nodejs-appsvc-cosmosdb-bottleneck

0.0 0.0 0.0 3.04 MB

Sample load test with Azure pipeline

License: MIT License

JavaScript 47.44% PowerShell 23.53% CSS 11.02% HTML 1.54% Batchfile 16.48%

nodejs-appsvc-cosmosdb-bottleneck's Introduction

WebApp with Cosmos DB

A sample webapp deployed on app service with cosmos db as database. It counts the number of visitors visiting the page and inserts the same into a sample collection in Cosmos DB.

Installation

  1. In your terminal window, log into Azure and set a subscription(subscription which would contain the webapp) :

     az login
     az account set -s mySubscriptionName
    
  2. Clone the sample application's source repository. The sample application is a Node.js app consisting of an Azure App Service web component and a Cosmos DB database. The repo also contains a PowerShell script that deploys the sample app to your Azure subscription.

     git clone https://github.com/Azure-Samples/nodejs-appsvc-cosmosdb-bottleneck.git
    
  3. Deploy the sample app using the PowerShell script. (Tip: macOS users can install PowerShell here)

     cd SampleApp
     .\deploymentscript.ps1
    
  4. You will be prompted to supply a unique application name and a location (default is eastus). A resource group for the resources would be created with the same name.

  5. Once deployment is complete, browse to the running sample application with your browser.

     https://<app_name>.azurewebsites.net
    

Clean up resources

You may want to delete the resources to avoid to continue incurring charges. Use the az group delete command to remove the resource group and all related resources.

    az group delete --name myResourceGroup

Similarly, you can utilize the Delete resource group toolbar button on the sample application's resource group to remove all the resources.

nodejs-appsvc-cosmosdb-bottleneck's People

Contributors

allantargino avatar gkknow avatar issacnitinmsft avatar microsoftopensource avatar ninallam avatar ntrogh avatar sachid26 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.