Skip to content

Commit 6ea45bf

Browse files
committed
Updated Readme file
1 parent c7b205f commit 6ea45bf

File tree

1 file changed

+11
-33
lines changed
  • samples/features/json/product-catalog/nodejs-jquery-bootstrap-app

1 file changed

+11
-33
lines changed

samples/features/json/product-catalog/nodejs-jquery-bootstrap-app/README.md

Lines changed: 11 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# ASP.NET Core Product Catalog application that uses SQL/JSON functionalities
1+
# Node.js Product Catalog application that uses SQL/JSON functionalities
22

3-
This project contains an example implementation of ASP.NET Core application that shows how to display list of products, add, edit, or delete products in the list.
3+
This project contains an example implementation of Node.js application that shows how to display list of products, add, edit, or delete products in the list.
44

55
## Contents
66

@@ -17,7 +17,7 @@ This project contains an example implementation of ASP.NET Core application that
1717

1818
- **Applies to:** SQL Server 2016 (or higher), Azure SQL Database
1919
- **Key features:** JSON functions in SQL Server 2016/Azure SQL Database
20-
- **Programming Language:** C#, Html/JavaScript, Transact-SQL
20+
- **Programming Language:** Html/JavaScript/Node.js, Transact-SQL
2121
- **Authors:** Jovan Popovic
2222

2323
<a name=before-you-begin></a>
@@ -29,7 +29,7 @@ To run this sample, you need the following prerequisites.
2929
**Software prerequisites:**
3030

3131
1. SQL Server 2016 (or higher) or an Azure SQL Database
32-
2. Visual Studio 2015 Update 3 (or higher) or Visual Studio Code Editor with the ASP.NET Core 1.0 (or higher)
32+
2. Node.js installation
3333

3434
**Azure prerequisites:**
3535

@@ -39,39 +39,18 @@ To run this sample, you need the following prerequisites.
3939

4040
## Run this sample
4141

42-
### Setup
43-
4442
1. Create a database on SQL Server 2016 or Azure SQL Database and set compatibility level to 130.
4543

4644
2. From SQL Server Management Studio or Sql Server Data Tools connect to your SQL Server 2016 or Azure SQL database and execute [sql-scripts/setup.sql](sql-scripts/setup.sql) script that will create and populate Product table and create required stored procedures.
4745

48-
3. From Visual Studio 2015, open the **ProductCatalog.xproj** file from the root directory. Restore packages using right-click menu on the project in Visual Studio and by choosing Restore Packages item. As an alternative, you may run **dotnet restore** from the command line (from the root folder of application).
49-
50-
4. Add a connection string in appsettings.json or appsettings.development.json file. An example of the content of appsettings.development.json is shown in the following configuration:
51-
52-
```
53-
{
54-
"ConnectionStrings": {
55-
"ProductCatalog": "Server=.;Database=ProductCatalog;Integrated Security=true"
56-
}
57-
}
58-
```
59-
60-
If your database is hosted on Azure you can add something like:
61-
```
62-
{
63-
"ConnectionStrings": {
64-
"ProductCatalog": "Server=<<SERVER>>.database.windows.net;Database=ProductCatalog;User Id=<<USER>>;Password=<<PASSWORD>>"
65-
}
66-
}
67-
```
46+
3. From command line run **npm update** to update node.js packages.
6847

69-
### Build and run sample
48+
4. Setup connection information db.js
7049

71-
1. Build solution using Ctrl+Shift+B, right-click on project + Build, Build/Build Solution from menu, or **dotnet build** command from the command line (from the root folder of application).
50+
5. Build and run sample using **npm build** and **npm run**.
7251

73-
2. Run the sample app using F5 or Ctrl+F5 in Visual Studio 2015, or using **dotnet run** executed in the command prompt of the project root folder.
74-
1. Open /index.html Url to get all products from database,
52+
6. Run the sample app using F5 or Ctrl+F5 in Visual Studio 2015, or using **dotnet run** executed in the command prompt of the project root folder.
53+
1. Open http://localhost:3000/index.html to get all products from database,
7554
2. Use **Add** button to add a new product,
7655
3. Edit a product using **Edit** button in table,
7756
4. Delete a product using **Delete** button in table,
@@ -82,21 +61,20 @@ If your database is hosted on Azure you can add something like:
8261

8362
This sample application shows how to display list of products, add, edit or delete some product.
8463
Front-end code is implemented using JQuery/Bootstrap libraries, and JQuery DataTable component for displaying data in table.
85-
Server-side code is implemented using ASP.NET Core Web API.
64+
Server-side code is implemented using Node.js Express4 REST API.
8665
SQL Server JSON functions are used to format product data that will be sent to front-end page.
8766

8867
<a name=disclaimers></a>
8968

9069
## Disclaimers
91-
The code included in this sample is not intended demonstrate some general guidance and architectural patterns for web development. It contains minimal code required to create REST API, and it does not use some patterns such as Repository. Sample uses built-in ASP.NET Core Dependency Injection mechanism; however, this is not prerequisite.
70+
The code included in this sample is not intended demonstrate some general guidance and architectural patterns for web development. It contains minimal code required to create REST API.
9271
You can easily modify this code to fit the architecture of your application.
9372

9473
<a name=related-links></a>
9574

9675
## Related Links
9776

9877
You can find more information about the components that are used in this sample on these locations:
99-
- [ASP.NET Core](http://www.asp.net/core).
10078
- [JSON Support in Sql Server](https://msdn.microsoft.com/en-us/library/dn921897.aspx).
10179
- [JQuery](https://jquery.com/).
10280
- [Bootstrap](http://getbootstrap.com/).

0 commit comments

Comments
 (0)