<commit_before># RedisLabSession #
### Handling Sessions with Redis Cloud ###
Demo of using RedisLabs RedisCloud as a user caching store for a node.js app with SQL Azure

NOTE: Instructions are for OSX

1. Prerequisites
  * install node.js
  * install azure cli
  * use a text editor (VSCode, Sublime, etc...)

2. Redis Cloud
  * go to RedisLabs.com and sign up
  * login to RedisLabs.com and click 'New Redis Subscription'
  * next to 'Cloud' click the drop down, select 'Azure/west-us' and 30MB/Free
  * go to 'My Resources' >'Manage Resources', wait for the green checkmark 
  * note your Redis Cloud endpoint address and Redis password
  * fill in these values on the Redis variables in your 'env' file
  
3. Azure Setup
  * fill in your desired values in your 'azure-scripts/redis-lab-demo-sql-server/parameters.json' file
  * open 'azure-scripts/redis-lab-demo-sql-server/deploy.sh'
  * run 'azure-scripts/redis-lab-demo-sql-server/deploy.sh' from a bash shell
  * connect to your SQLAzure instance with a client (i.e. Navicat), run scripts
    * run 'user-login.sql' and 'user-status.sql' to create tables<commit_msg>updated name to 'Azure SQL'<commit_after># RedisLabSession #
### Handling Sessions with Redis Cloud ###
Demo of using RedisLabs RedisCloud as a user caching store for a node.js app with Azure SQL

NOTE: Instructions are for OSX

1. Prerequisites
  * install node.js
  * install azure cli
  * use a text editor (VSCode, Sublime, etc...)

2. Redis Cloud
  * go to RedisLabs.com and sign up
  * login to RedisLabs.com and click 'New Redis Subscription'
  * next to 'Cloud' click the drop down, select 'Azure/west-us' and 30MB/Free
  * go to 'My Resources' >'Manage Resources', wait for the green checkmark 
  * note your Redis Cloud endpoint address and Redis password
  * fill in these values on the Redis variables in your 'env' file
  
3. Azure Setup
  * fill in your desired values in your 'azure-scripts/redis-lab-demo-sql-server/parameters.json' file
  * open 'azure-scripts/redis-lab-demo-sql-server/deploy.sh'
  * run 'azure-scripts/redis-lab-demo-sql-server/deploy.sh' from a bash shell
  * connect to your Azure SQL instance with a client (i.e. Navicat), run scripts
    * run 'user-login.sql' and 'user-status.sql' to create tables
{'fraction_non_alphanumeric': 0.0901458241272647, 'fraction_numerical': 0.004418912947414936, 'mean_word_length': 3.6970954356846475, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '847711', 'n_tokens_mistral': 737, 'n_tokens_neox': 719, 'n_words': 288}