Nexmo used to send sms from our app. Here the official documentation of Nexmo. Nexmo Documentation . Let's Start... First of all, you should have basic knowledge of NodeJS, Expressjs, Ejs. 1.Create Folder of any name, Initialize as Node directory using "$npm init" command. 2.Install all Dependencies as mentioned below. 3.import all the module that are required for your application using "require()". 4.Before Using Nexmo,you need to have account in nexmo.com to use sms service.From there you'll get your 'SECRET KEY' & 'API KEY'. 5.Create Nexmo object with provided keys. debug:true is used for debugging of our application(recommended). 6.Method to send SMS through Nexmo is 7.Start App, Run following command You can see the Sms in you mobile. If You have any problem regarding this post, write down in the comment section below.
ExpressJS allows you to develop custom web server according to your need. You don’t need to install multiple packages to handle HTML files. If you have Node.js installed, you are good to go. In this short tutorial i am going to explain how to render HTML files in ExpressJS. About sendFile() function. ExpressJS provides sendFile() function which will basically send HTML files to browser which then automatically interpreted by browser. All we need to do is in every route deliver appropriate HTML file. For.eg : When user hit main URL deliver index.html : This code is for example purpose. It will cause directory resolution error. Our project : I am going to develop simple website consist of pages i.e Home page. I will use Bootstrap for designing. Directory structure : package.json Install Dependencies Using : and Run Project using : Here is our Express Server : Here is our index.html file : Here is the output ...