- Node.js 8.5 or greater
- Docker running locally
- Azure CLI (or Cloud Shell)
- Azure Storage Module
Azure storage comprises of three main services. Blob storage, queue storage and table storage.
Make a node project first, which is given in the example/azure-storage folder.
npm init --yes
Add the developer credentials to the Azure CLI cross platform
$ az storage container create --name 'test' --connection-string 'DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw=='
{
"created": true
}
Pull the docker image
docker pull arafato/azurite
Refer the documentation for the functionalities provided by the azure storage library.
And refer the project in the examples of the project.
Now run the server and following are the commands.
- Start Storage
clocal storage-start
- Stop Storage
clocal storage-stop
- Clear all files created
clocal storage-clear
Go to the project you have created using azure storage. And start the project.