seguler / static-website-blob-browser

Static Website - File Browser App for Blob Storage
26 stars 18 forks source link

services: storage platforms: javascript author: seguler

Static Website Sample - File Browser app for Blob Storage

This sample application can be used as a static website on Azure Storage to list the contents of a Blob container (anonymously). The project was bootstrapped with Create React App. The sample assumes your blob container is made public, however it can be modified to use Azure Active Directory authentication. The file browser also allows downloading each file with a single click.

Demo

Try the app here: https://staticwebsitedemo.z20.web.core.windows.net/

Pre-requsites

Deploy the sample - step by step

Follow the following steps to deploy the sample on your Azure Storage account. Once deployed, the sample app will provide you a file browser view of your $web container. If you desire so, you can change the container in the index.js to any other public container.

Once you have deployed, configure the container as public, and set the CORS settings to allow access from the static website endpoint.

Blob browser - Static website

More information