{"id":256,"date":"2022-03-08T11:30:18","date_gmt":"2022-03-08T11:30:18","guid":{"rendered":"https:\/\/www.kindsonthegenius.com\/nodejs\/?p=256"},"modified":"2022-04-09T18:02:53","modified_gmt":"2022-04-09T18:02:53","slug":"node-js-create-a-node-js-api-using-typescript","status":"publish","type":"post","link":"https:\/\/www.kindsonthegenius.com\/nodejs\/node-js-create-a-node-js-api-using-typescript\/","title":{"rendered":"Node.js &#8211; Create a Node.js API Using TypeScript (Part 1 &#8211; Setup)"},"content":{"rendered":"<p>In this tutorial, you will learn how to setup a Node.js API using TypeScript. In the previous tutorials, we created an API using Node.js and Javascript. You can find them below:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.kindsonthegenius.com\/nodejs\/rest-api\/\" target=\"_blank\" rel=\"noopener\">Build and API in Node.js<\/a><\/li>\n<li><a href=\"https:\/\/www.kindsonthegenius.com\/nodejs\/node-js-express-framework\/\" target=\"_blank\" rel=\"noopener\">GET, POST, PUT and DELETE with Node.js<\/a><\/li>\n<\/ul>\n<p>We would follow the steps to first setup Node.js application, then TypeScript and finally build an API. We would do the following:<\/p>\n<ol>\n<li><a href=\"#t1\">Do Some Initialization<\/a><\/li>\n<li><a href=\"#t2\">Initialize and Configure tsconfig.json File<\/a><\/li>\n<li><a href=\"#t3\">Modify the Package.json File<\/a><\/li>\n<li><a href=\"#t4\">Create a Server<\/a><\/li>\n<li><a href=\"#t5\">Setup the Application Structure<\/a><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t1\">1. Do Some Initialization<\/strong><\/h4>\n<p><strong>Step 1<\/strong> &#8211; Create a folder and open this folder using IntelliJ<\/p>\n<p><strong>Step 2<\/strong> &#8211; Initialize Node.js using the command <strong>npm init<\/strong> and then<strong> npm install<\/strong>.<\/p>\n<p><strong>Step 3<\/strong> &#8211; Then you need to install Typescript using globally<\/p>\n<p>This provides the typescript compiler which makes it possible to compile Typescript code into JavaScript<\/p>\n<p><strong>Step 4<\/strong> &#8211;\u00a0 Install the following dependencies<\/p>\n<ul>\n<li>ts-node<\/li>\n<li>express<\/li>\n<li>@types\/express<\/li>\n<li>nodemon<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t2\">2. Initialize and Configure tsconfig.json<\/strong><\/h4>\n<p><strong>Step 1<\/strong>\u00a0&#8211; Initialize TypeScript using the command<em><strong> tsc &#8211;init<\/strong><\/em><\/p>\n<p>This would create the tsconfig.json file.<\/p>\n<p><strong>Step 2<\/strong> &#8211; Open the tsconfig.json file and ensure the following settings are enabled<\/p>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"background-color: #fff0f0;\">\"compilerOptions\"<\/span><span style=\"color: #ff0000; background-color: #ffaaaa;\">:<\/span> {\r\n    <span style=\"color: #007700;\">\"forceConsistentCasingInFileNames\"<\/span>: <span style=\"color: #008800; font-weight: bold;\">true<\/span>,\r\n        <span style=\"color: #007700;\">\"module\"<\/span>: <span style=\"background-color: #fff0f0;\">\"commonjs\"<\/span>,\r\n        <span style=\"color: #007700;\">\"esModuleInterop\"<\/span>: <span style=\"color: #008800; font-weight: bold;\">true<\/span>,\r\n        <span style=\"color: #007700;\">\"outDir\"<\/span>: <span style=\"background-color: #fff0f0;\">\".\/build\"<\/span>,\r\n        <span style=\"color: #007700;\">\"rootDir\"<\/span>: <span style=\"background-color: #fff0f0;\">\".\/src\"<\/span>,\r\n        <span style=\"color: #007700;\">\"target\"<\/span>: <span style=\"background-color: #fff0f0;\">\"es6\"<\/span>,\r\n        <span style=\"color: #007700;\">\"skipLibCheck\"<\/span>: <span style=\"color: #008800; font-weight: bold;\">true<\/span>,\r\n        <span style=\"color: #007700;\">\"strict\"<\/span>: <span style=\"color: #008800; font-weight: bold;\">true<\/span>\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t3\">3. Modify the package.json File<\/strong><\/h4>\n<p>We would now modify the package.json file to do two things:<\/p>\n<ul>\n<li>to specify the startup file<\/li>\n<li>allow for automatic server restart once something changes<\/li>\n<\/ul>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"background-color: #fff0f0;\">\"main\"<\/span><span style=\"color: #ff0000; background-color: #ffaaaa;\">:<\/span> <span style=\"background-color: #fff0f0;\">\"source\/server.ts\"<\/span><span style=\"color: #ff0000; background-color: #ffaaaa;\">,<\/span>\r\n<span style=\"background-color: #fff0f0;\">\"scripts\"<\/span><span style=\"color: #ff0000; background-color: #ffaaaa;\">:<\/span> {\r\n    <span style=\"color: #007700;\">\"dev\"<\/span>: <span style=\"background-color: #fff0f0;\">\"nodemon source\/server.ts\"<\/span>,\r\n    <span style=\"color: #007700;\">\"build\"<\/span>: <span style=\"background-color: #fff0f0;\">\"rm -rf build\/ &amp;&amp; prettier --write source\/ &amp;&amp; tsc\"<\/span>\r\n}\r\n<\/pre>\n<p>With the above code, the typescript files would be build and compiled into JavaScript file.<\/p>\n<p>Then we can start the server using the command npm run dev<\/p>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t4\">4. Create the Server<\/strong><\/h4>\n<p>We would have to create a server that startups up when we issue the command npm run dev.<\/p>\n<p><strong>Step 1<\/strong> &#8211; Create a file named server.ts outside the src directory. The content of the file is given below:<\/p>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #008800; font-weight: bold;\">import<\/span> http from <span style=\"background-color: #fff0f0;\">'http'<\/span>\r\n<span style=\"color: #008800; font-weight: bold;\">import<\/span> express, {Express} from <span style=\"background-color: #fff0f0;\">'express'<\/span>\r\n<span style=\"color: #008800; font-weight: bold;\">import<\/span> routes from <span style=\"background-color: #fff0f0;\">'..\/src\/routes\/app-routes'<\/span>\r\n\r\n<span style=\"color: #008800; font-weight: bold;\">const<\/span> router: <span style=\"color: #333399; font-weight: bold;\">Express<\/span> <span style=\"color: #333333;\">=<\/span> express();\r\nrouter.use(<span style=\"background-color: #fff0f0;\">'\/'<\/span>, routes)\r\n\r\n<span style=\"color: #008800; font-weight: bold;\">const<\/span> httpServer <span style=\"color: #333333;\">=<\/span> http.createServer(router)\r\n\r\nhttpServer.listen(<span style=\"color: #0000dd; font-weight: bold;\">6600<\/span>, ()<span style=\"color: #333333;\">=&gt;<\/span>{\r\n    console.log(<span style=\"color: #ff0000; background-color: #ffaaaa;\">`<\/span>Server is running at port <span style=\"color: #0000dd; font-weight: bold;\">6600<\/span><span style=\"color: #ff0000; background-color: #ffaaaa;\">`<\/span>);\r\n})\r\n<\/pre>\n<p>This script basically tells node.js to use the routes specified in the app-routes.ts file. Then it should listen for request coming in port 6600<\/p>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t5\">5. Setup the Application Structure<\/strong><\/h4>\n<p>We would have to create an src folder that would hold our application files. Then inside the src folder, we would have 3 folders: services, controller and routes<\/p>\n<p><strong>Step 1<\/strong> &#8211; Create the src folder<\/p>\n<p><strong>Step 2<\/strong> &#8211; Inside the src folder, create 3 folders: services, controllers and routes<\/p>\n<p><strong>Step 3<\/strong> &#8211; Inside the controllers folder, create a file named <em><strong>home-controller.ts<\/strong><\/em>. This would be the content<\/p>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #008800; font-weight: bold;\">import<\/span> {Request, Response} from <span style=\"background-color: #fff0f0;\">'express'<\/span>;\r\n<span style=\"color: #008800; font-weight: bold;\">import<\/span> <span style=\"color: #333333;\">*<\/span> <span style=\"color: #008800; font-weight: bold;\">as<\/span> service from <span style=\"background-color: #fff0f0;\">'..\/services\/home-service'<\/span>\r\n\r\n<span style=\"color: #008800; font-weight: bold;\">const<\/span> getHome <span style=\"color: #333333;\">=<\/span> async (req: <span style=\"color: #333399; font-weight: bold;\">Request<\/span>, res: <span style=\"color: #333399; font-weight: bold;\">Response<\/span>) <span style=\"color: #333333;\">=&gt;<\/span> {\r\n    <span style=\"color: #008800; font-weight: bold;\">return<\/span> res.send(service.goHome());\r\n};\r\n\r\n<span style=\"color: #008800; font-weight: bold;\">export<\/span> <span style=\"color: #008800; font-weight: bold;\">default<\/span> {getHome}\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>Step 4<\/strong> &#8211; Inside the services folder, create a file named <em><strong>home-service.ts<\/strong><\/em>. This would be the content<\/p>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #008800; font-weight: bold;\">export<\/span> <span style=\"color: #008800; font-weight: bold;\">function<\/span> goHome() {\r\n    <span style=\"color: #008800; font-weight: bold;\">return<\/span> <span style=\"background-color: #fff0f0;\">\"Kindson is here now yesss\"<\/span><span style=\"color: #333333;\">!<\/span>\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>Step 5<\/strong> &#8211; Inside the routes folder, create a file named<strong><em> app-routes.ts<\/em><\/strong>, this would be the content<\/p>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #008800; font-weight: bold;\">import<\/span> express from <span style=\"background-color: #fff0f0;\">'express'<\/span>\r\n<span style=\"color: #008800; font-weight: bold;\">import<\/span> controller from <span style=\"background-color: #fff0f0;\">'..\/controllers\/home-controller'<\/span>\r\n\r\n<span style=\"color: #008800; font-weight: bold;\">const<\/span> router <span style=\"color: #333333;\">=<\/span> express.Router();\r\n\r\nrouter.get(<span style=\"background-color: #fff0f0;\">'\/home'<\/span>, controller.getHome);\r\n\r\n<span style=\"color: #008800; font-weight: bold;\">export<\/span> <span style=\"color: #333333;\">=<\/span> router;\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>At this point we have setup the API with TypeScript and now you can run the application using the command <em><strong>npm run dev<\/strong><\/em>.<\/p>\n<p>Then you can access the \/home url and see that you get a response!<\/p>\n<p>In the next part, we would then write the services that retrieves data from PostgreSQL database.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn how to setup a Node.js API using TypeScript. In the previous tutorials, we created an API using Node.js and &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[31],"class_list":["post-256","post","type-post","status-publish","format-standard","hentry","category-node-js-tutorials","tag-typescript"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Node.js - Create a Node.js API Using TypeScript (Part 1 - Setup) - Node.js Tutorials<\/title>\n<meta name=\"description\" content=\"This tutorial explains step by step how to build an API in Node.js Using TypeScript.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.kindsonthegenius.com\/nodejs\/node-js-create-a-node-js-api-using-typescript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Node.js - Create a Node.js API Using TypeScript (Part 1 - Setup) - Node.js Tutorials\" \/>\n<meta property=\"og:description\" content=\"This tutorial explains step by step how to build an API in Node.js Using TypeScript.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.kindsonthegenius.com\/nodejs\/node-js-create-a-node-js-api-using-typescript\/\" \/>\n<meta property=\"og:site_name\" content=\"Node.js Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2022-03-08T11:30:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-09T18:02:53+00:00\" \/>\n<meta name=\"author\" content=\"kindsonthegenius\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"kindsonthegenius\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/node-js-create-a-node-js-api-using-typescript\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/node-js-create-a-node-js-api-using-typescript\\\/\"},\"author\":{\"name\":\"kindsonthegenius\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/#\\\/schema\\\/person\\\/7f8fc5792578d2ff54003fcebe6c46b5\"},\"headline\":\"Node.js &#8211; Create a Node.js API Using TypeScript (Part 1 &#8211; Setup)\",\"datePublished\":\"2022-03-08T11:30:18+00:00\",\"dateModified\":\"2022-04-09T18:02:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/node-js-create-a-node-js-api-using-typescript\\\/\"},\"wordCount\":488,\"commentCount\":0,\"keywords\":[\"TypeScript\"],\"articleSection\":[\"Node.js Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/node-js-create-a-node-js-api-using-typescript\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/node-js-create-a-node-js-api-using-typescript\\\/\",\"url\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/node-js-create-a-node-js-api-using-typescript\\\/\",\"name\":\"Node.js - Create a Node.js API Using TypeScript (Part 1 - Setup) - Node.js Tutorials\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/#website\"},\"datePublished\":\"2022-03-08T11:30:18+00:00\",\"dateModified\":\"2022-04-09T18:02:53+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/#\\\/schema\\\/person\\\/7f8fc5792578d2ff54003fcebe6c46b5\"},\"description\":\"This tutorial explains step by step how to build an API in Node.js Using TypeScript.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/node-js-create-a-node-js-api-using-typescript\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/node-js-create-a-node-js-api-using-typescript\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/node-js-create-a-node-js-api-using-typescript\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Node.js &#8211; Create a Node.js API Using TypeScript (Part 1 &#8211; Setup)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/#website\",\"url\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/\",\"name\":\"Node.js Tutorials\",\"description\":\"Best Node.js Tutorials\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/#\\\/schema\\\/person\\\/7f8fc5792578d2ff54003fcebe6c46b5\",\"name\":\"kindsonthegenius\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g\",\"caption\":\"kindsonthegenius\"},\"url\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/author\\\/kindsonthegenius-3\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Node.js - Create a Node.js API Using TypeScript (Part 1 - Setup) - Node.js Tutorials","description":"This tutorial explains step by step how to build an API in Node.js Using TypeScript.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.kindsonthegenius.com\/nodejs\/node-js-create-a-node-js-api-using-typescript\/","og_locale":"en_US","og_type":"article","og_title":"Node.js - Create a Node.js API Using TypeScript (Part 1 - Setup) - Node.js Tutorials","og_description":"This tutorial explains step by step how to build an API in Node.js Using TypeScript.","og_url":"https:\/\/www.kindsonthegenius.com\/nodejs\/node-js-create-a-node-js-api-using-typescript\/","og_site_name":"Node.js Tutorials","article_published_time":"2022-03-08T11:30:18+00:00","article_modified_time":"2022-04-09T18:02:53+00:00","author":"kindsonthegenius","twitter_card":"summary_large_image","twitter_misc":{"Written by":"kindsonthegenius","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/node-js-create-a-node-js-api-using-typescript\/#article","isPartOf":{"@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/node-js-create-a-node-js-api-using-typescript\/"},"author":{"name":"kindsonthegenius","@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/#\/schema\/person\/7f8fc5792578d2ff54003fcebe6c46b5"},"headline":"Node.js &#8211; Create a Node.js API Using TypeScript (Part 1 &#8211; Setup)","datePublished":"2022-03-08T11:30:18+00:00","dateModified":"2022-04-09T18:02:53+00:00","mainEntityOfPage":{"@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/node-js-create-a-node-js-api-using-typescript\/"},"wordCount":488,"commentCount":0,"keywords":["TypeScript"],"articleSection":["Node.js Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.kindsonthegenius.com\/nodejs\/node-js-create-a-node-js-api-using-typescript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/node-js-create-a-node-js-api-using-typescript\/","url":"https:\/\/www.kindsonthegenius.com\/nodejs\/node-js-create-a-node-js-api-using-typescript\/","name":"Node.js - Create a Node.js API Using TypeScript (Part 1 - Setup) - Node.js Tutorials","isPartOf":{"@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/#website"},"datePublished":"2022-03-08T11:30:18+00:00","dateModified":"2022-04-09T18:02:53+00:00","author":{"@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/#\/schema\/person\/7f8fc5792578d2ff54003fcebe6c46b5"},"description":"This tutorial explains step by step how to build an API in Node.js Using TypeScript.","breadcrumb":{"@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/node-js-create-a-node-js-api-using-typescript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.kindsonthegenius.com\/nodejs\/node-js-create-a-node-js-api-using-typescript\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/node-js-create-a-node-js-api-using-typescript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.kindsonthegenius.com\/nodejs\/"},{"@type":"ListItem","position":2,"name":"Node.js &#8211; Create a Node.js API Using TypeScript (Part 1 &#8211; Setup)"}]},{"@type":"WebSite","@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/#website","url":"https:\/\/www.kindsonthegenius.com\/nodejs\/","name":"Node.js Tutorials","description":"Best Node.js Tutorials","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.kindsonthegenius.com\/nodejs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/#\/schema\/person\/7f8fc5792578d2ff54003fcebe6c46b5","name":"kindsonthegenius","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g","caption":"kindsonthegenius"},"url":"https:\/\/www.kindsonthegenius.com\/nodejs\/author\/kindsonthegenius-3\/"}]}},"_links":{"self":[{"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/posts\/256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/comments?post=256"}],"version-history":[{"count":7,"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/posts\/256\/revisions"}],"predecessor-version":[{"id":281,"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/posts\/256\/revisions\/281"}],"wp:attachment":[{"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/media?parent=256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/categories?post=256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/tags?post=256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}