GithubHelp home page GithubHelp logo

azdev-project-2's Introduction

azdev-project-2-

Pre-reqs

Create a file scripts/secrets.ps1 with the confidential data items:

$env:LAB_PASSWORD='<password-for-sql-server>'

$env:GH_TOKEN='<your-github-access-token'

Run locally

You'll need SQL Server, Service Bus & Table Storage already set up in Azure.

Get the connection strings for those services, then run the backend message handler:

cd projects/distributed/src/save-handler

dotnet run `
 --ConnectionStrings:ToDoDb='<sqlserver-connection-string>' `
 --ConnectionStrings:ServiceBus='<servicebus-connection-string>' `
 --Serilog:WriteTo:0:Args:connectionString='<tablestorage-connection-string>'

You'll see a couple of log entries in the terminal. Then check your Table Storage and you should see a log saying the handler has subscribed to the queue.

Next open a new terminal to run the website:

cd projects/distributed/src/web

dotnet run `
 --ConnectionStrings:ToDoDb='<sqlserver-connection-string>' `
 --ConnectionStrings:ServiceBus='<servicebus-connection-string>' `
 --Serilog:WriteTo:0:Args:connectionString='<tablestorage-connection-string>'

Browse to http://localhost:5000.

Test environment

Deploy with a serverless SQL database with 1 CPU, and a single App Service worker:

cd scripts

./deploy-test.ps1

Deployment will be in the RG called rg-proj1todotest

Production environment

Deploy with a 4-CPU SQL database and 3 App Service workers:

./deploy-prod.ps1

Deployment will be in the RG called rg-proj1todoprod

Teardown

./delete-test.ps1

./delete-prod.ps1

azdev-project-2's People

Contributors

sixeyed 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.