Giter Club home page Giter Club logo

azure-functions-datasette's Introduction

Deploying Datasette using Azure Functions

This repository shows an example of Datasette deployed using Azure Functions.

https://azure-functions-datasette.azurewebsites.net/

It uses a slightly modified version of the ASGI proof of concept wrapper created by Anthony Shaw in this GitHub issues thread.

To deploy you'll need an Azure account, plus the az and func command-line tools. I installed these following the instructions in this tutorial - specifically this and this.

You'll need to create a resource group, a storage account and a function app.

I found that the resource group needed to be in westeurope for functions to work correctly.

Creating the resource group:

az group create \
    --name datasette-rg \
    --location westeurope

Creating the storage account:

az storage account create \
    --name datasettestorage \
    --location westeurope \
    --resource-group datasette-rg \
    --sku Standard_LRS

Creating the function app. The name here is the name that will be exposed in the default URL, so it needs to be globally unique - unlike the storage account and resource group which only have to be unique within your Azure account.

az functionapp create \
    --resource-group datasette-rg \
    --consumption-plan-location westeurope \
    --runtime python \
    --runtime-version 3.8 \
    --functions-version 3 \
    --storage-account datasettestorage \
    --os-type linux \
    --name azure-functions-datasette

Finally, deploy the application like so:

func azure functionapp publish azure-functions-datasette

azure-functions-datasette's People

Contributors

simonw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

hiandrewquinn

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.