Building Web APIs Using Node.js and Express: Part 2.

Autor: Sheriff, Paul D.
Předmět:
Zdroj: CODE Magazine; Jul/Aug2023, Vol. 24 Issue 4, p8-18, 11p
Abstrakt: In this article, you built upon the code from Part 1 of this article series. You added the ability to store hard-coded data into a configuration file and read that data from the file for use in your application. You took advantage of the middleware features of Node.js and Express to add exception handling that can log to both the console and to a file. Finally, you used the mssql package to connect to a SQL Server database. You then created functions to read, search, add, edit, and delete product data from a Product table. In the next article, you’ll create an Express web server to build dynamic web pages. You’re going to use these pages to make calls to the Web APIs you’ve created in these two articles to create a complete set of CRUD web pages. [ABSTRACT FROM AUTHOR]
Databáze: Complementary Index