Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vicradon/azure-blob-storage-workshop
https://github.com/vicradon/azure-blob-storage-workshop
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/vicradon/azure-blob-storage-workshop
- Owner: vicradon
- Created: 2021-05-22T08:49:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-22T10:33:32.000Z (over 3 years ago)
- Last Synced: 2024-04-28T06:35:44.039Z (8 months ago)
- Language: JavaScript
- Size: 532 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Azure Blob Storage Workshop
A workshop on working with Azure Blob Storage in an ExpressJS application.
## Prerequisites
1. NodeJS v14 or higher
2. npm v6 or higher
3. Azure subscription## Installation
1. Clone this repo using
```
git clone https://github.com/vicradon/azure-blob-storage-workshop
```2. Install dependencies
```
npm i
```3. Create an environment file
```
cp .env.example .env
```4. Add the application port to the PORT key in the .env file
```
PORT=3000
```5. Obtain the AZURE_STORAGE_ACCOUNT_NAME and AZURE_STORAGE_ACCOUNT_ACCESS_KEY variables
## How to obtain the storage account variables
1. Sign in to your Azure Portal
2. Create a storage account in a new resource group
![Storage Account Selection](./readme-images/storage-account-selection.png)
![Storage Account Creation](./readme-images/creating-storage-account.png)
3. Once the deployment is complete, create a container for uploaded images called `app-uploads`
![Storage Account Container Creation](./readme-images/containers-page.png)4. Navigate to the section and obtain the access keys
![Obtaining Access Keys](./readme-images/selecting-access-keys.png)5. Add them to your application
## Running your app locally
To run the app locally, run `npm run dev`