GithubHelp home page GithubHelp logo

isabella232 / durablefunctions-apiscraping-nodejs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure-samples/durablefunctions-apiscraping-nodejs

0.0 0.0 0.0 106 KB

Build an Azure Durable Functions that will scrape GitHub for opened issues and store them on Azure Storage.

License: MIT License

JavaScript 84.41% PowerShell 15.59%

durablefunctions-apiscraping-nodejs's Introduction

page_type products languages name urlFragment description
sample
azure
azure-functions
azure-storage
javascript
nodejs
Retrieve opened issue count on GitHub with Azure Durable Functions (Node)
retrieve-opened-issue-count-on-github-with-azure-durable-functions
Build an Azure Durable Functions that will scrape GitHub for opened issues and store them on Azure Storage.

Retrieve opened issue count on GitHub with Azure Durable Functions

Build

The project requires the latest version of the Azure Functions CLI.

It can be installed by running the following code:

npm i -g azure-functions-core-tools@core --unsafe-perm true

More installation options are also available.

Running the Sample

Pre-requisite

Locally

Change the GitHubToken value in local.settings.json to match your GitHub Personal Access Token created previously in the pre-requisite.

To ensure that everything is configured properly run the following commands within the FanOutFanInCrawler folder.

func extensions install
npm install

Once the dependencies has been installed, you can either run it from VS Code by running code . and hitting F5 on your keyboard. If you want to run it from the command line, you can run it with the following command within the FanOutFanInCrawler folder.

func host start

On Azure

To deploy components on Azure you will require to install and login with the Azure CLI.

First, you will need to provision the service. Look into the provision.ps1 file provided to familiarize yourself with the resources we are going to create.

Then you can execute the file with the previously generated GitHub.

.\provision.ps1 -githubToken <TOKEN> -resourceGroup <ResourceGroupName> -storageName <StorageAccountName> -functionName <FunctionName>

If you do not have PowerShell installed, you can simply take the commands within the file and run it manually.

Contribute

You can contribute to this sample by following the guidelines.

Resources

durablefunctions-apiscraping-nodejs's People

Contributors

maximrouiller avatar microsoftopensource avatar msftgits avatar sdras avatar supernova-eng 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.