We can write get and post method in API using node js. We rae using Postman for testing here. We can write API’s in node JS for send and recieving the requests. By using this code we can get the values in postman as well as in server. First we need to install the Express… Continue reading How to send get and post request in API using Node JS & using Postman
Tag: node js
Use EJS as Template Engine in Node.js
EJS or Embedded Javascript Templating is a templating engine used by Node.js. Template engine helps to create an HTML template with minimal code. Also, it can inject data into an HTML template on the client side and produce the final HTML. EJS is a simple templating language that is used to generate HTML markup with… Continue reading Use EJS as Template Engine in Node.js
How to map a model to table using Sequelize
We can use this file to define the mappings between a model and a table.
How to use Sequelize in Node.js
Sequelize is a promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite, and Microsoft SQL Server. Installation of Sequelize we have to install to Sequelize module install this module by using the following command. npm install sequelize Requiring module You need to include Sequelize module in your project by using these lines. const Sequelize = require(‘sequelize’);