Azure Database (Table Storage, Cosmos DB and more) module for Nest framework (node.js)
Learn how to get started with Azure table storage for NestJS
For Table Storage
- Create a Storage account and resource (read more)
- For Table Storage, In the Azure Portal, go to Dashboard > Storage > your-storage-account.
- Note down the "Storage account name" and "Connection string" obtained at Access keys under Settings tab.
$ npm i --save "@ntegral/nestjs-azure-table
- Create or update your existing
.env
file with the following content:
AZURE_STORAGE_CONNECTION_STRING=
-
IMPORTANT: Make sure to add your
.env
file to your .gitignore! The.env
file MUST NOT be versioned on Git. -
Make sure to include the following call to your main file:
if (process.env.NODE_ENV !== 'production') require('dotenv').config();