Skip to content

Commit 92b619f

Browse files
committed
Formatting of nodejs readme.md
1 parent b07d18d commit 92b619f

File tree

1 file changed

+16
-5
lines changed
  • samples/features/json/todo-app/nodejs-express4-rest-api

1 file changed

+16
-5
lines changed

samples/features/json/todo-app/nodejs-express4-rest-api/README.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,22 @@ To run this sample, you need the following prerequisites.
4545

4646
3. From Visual Studio, open the **TodoApp.xproj** file from the root directory,
4747

48-
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:
49-
4.1. SERVERNAME - name of the database server.
50-
4.2. DATABASE - Name of database where Todo table is stored.
51-
4.3. USERNAME - SQL Server login that can access table data and execute stored procedures.
52-
4.4. PASSWORD - Password associated to SQL Server login.
48+
4. Locate db.js file in the project, change database connection info in createConnection() method to reference your database.
49+
50+
```
51+
var config = {
52+
server : "SERVER.database.windows.net",
53+
userName: "USER",
54+
password: "PASSWORD",
55+
// If you're on Azure, you will need this:
56+
options: { encrypt: true, database: 'DATABASE' }
57+
};
58+
```
59+
The following tokens should be replaced:
60+
1. SERVERNAME - name of the database server.
61+
2. DATABASE - Name of database where Todo table is stored.
62+
3. USERNAME - SQL Server login that can access table data and execute stored procedures.
63+
4. PASSWORD - Password associated to SQL Server login.
5364

5465
5. Build project using Ctrl+Shift+B, right-click on project + Build, or Build/Build Solution from menu.
5566

0 commit comments

Comments
 (0)