A good email service to use to send mail in your Node project is SendGrid. Using SendGrid with Node is very simple: you just need a SendGrid account and you’re ready to start.
If you do not have an account, you can sign up to a free 30 day trial of SendGrid on their Pricing …
This post will look show an Express.js login page example using the EJS template engine and connecting to a MongoDB database.
This example will be using code from previous articles, so if you do not already know how to get started with Express.js or how to configure a route, go and check out how to …
Configuring a MongoDB connection in Expressjs requires a few lines of code which can easily be placed within your node application. If you haven’t recently set up an Expressjs project, you can learn how to do so here.
Firstly, download the mongodb package.
$ npm install mongodb
This will download the package into your project’s …
The basic Express Skeleton Application generates two routes, the default ‘index’ (or ‘/’) route and a ‘users’ route.
This can be seen within the project’s app.js near the top.
var express = require(‘express’);
var path = require(‘path’);
var favicon = require(‘serve-favicon’);
var logger = require(‘morgan’);
var cookieParser = require(‘cookie-parser’);
var bodyParser = require(‘body-parser’);
This article will demonstrate how to get started with Expressjs, an easy to use Node.js web application framework.
To start with, you’ll need to ensure you have downloaded Node.js which comes with the npm (Node Package Manager)
If you’ve installed Node correctly, you should be able to see the current version installed by running the …