From 92b619fd9b1f334aa5f350633d9c93943f978078 Mon Sep 17 00:00:00 2001 From: Jovan Popovic Date: Wed, 22 Jun 2016 15:27:57 +0200 Subject: [PATCH] Formatting of nodejs readme.md --- .../nodejs-express4-rest-api/README.md | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/samples/features/json/todo-app/nodejs-express4-rest-api/README.md b/samples/features/json/todo-app/nodejs-express4-rest-api/README.md index 46de88c1..48d4a854 100644 --- a/samples/features/json/todo-app/nodejs-express4-rest-api/README.md +++ b/samples/features/json/todo-app/nodejs-express4-rest-api/README.md @@ -45,11 +45,22 @@ To run this sample, you need the following prerequisites. 3. From Visual Studio, open the **TodoApp.xproj** file from the root directory, -4. Locate db.js file in the project, change database connection info in createConnection() method to reference your database. the following tokens should be replaced: -4.1. SERVERNAME - name of the database server. -4.2. DATABASE - Name of database where Todo table is stored. -4.3. USERNAME - SQL Server login that can access table data and execute stored procedures. -4.4. PASSWORD - Password associated to SQL Server login. +4. Locate db.js file in the project, change database connection info in createConnection() method to reference your database. + +``` + var config = { + server : "SERVER.database.windows.net", + userName: "USER", + password: "PASSWORD", + // If you're on Azure, you will need this: + options: { encrypt: true, database: 'DATABASE' } + }; +``` +The following tokens should be replaced: + 1. SERVERNAME - name of the database server. + 2. DATABASE - Name of database where Todo table is stored. + 3. USERNAME - SQL Server login that can access table data and execute stored procedures. + 4. PASSWORD - Password associated to SQL Server login. 5. Build project using Ctrl+Shift+B, right-click on project + Build, or Build/Build Solution from menu.