Skip to content

In this article, you’ll learn how to implement JWT authentication with access and refresh tokens using Node.js, ExpressJs, Prisma, PostgreSQL, Redis, and Docker-compose.

Notifications You must be signed in to change notification settings

wpcodevo/node_prisma_postgresql

 
 

Repository files navigation

CRUD API with Node.js and PostgreSQL: Send HTML Emails

In this article, you'll learn how to send HTML Emails with Node.js, Nodemailer, Prisma, PostgreSQL, Express, and Docker-compose. We'll create a generic class that can be used to send single or multiple emails at once by chaining the methods together.

CRUD API with Node.js and PostgreSQL: Send HTML Emails

Topics Covered

  • Send Emails with Node.js, Nodemailer, Prisma Overview
  • Setting up ExpressJs Templating Engine with Pug
  • Create a Utility Class to the Send Emails
    • Get the Nodemailer Credentials
    • Define the Email Class Attributes
    • Create a Nodemailer Transporter
    • Create a Method to Generate the Email Templates
    • Create a Method to Send the Emails
  • Creating the Email Templates with Pug
  • Run Prisma Migration to Update PostgreSQL Schema
  • Update the User Registration Controller to Send the Emails
  • Create a Route Handler to Verify the Email
  • Update the Login Controller

Read the entire article here: https://codevoweb.com/crud-api-node-js-and-postgresql-send-html-emails

Articles in this series:

1. Setup Node.js API with Prisma, TypeScript, and PostgreSQL

Setup Node.js API with Prisma, TypeScript, and PostgreSQL

2. Node.js + Prisma + PostgreSQL: Access & Refresh Tokens

API Node.js, TypeScript, Prisma, PostgreSQL: Project Setup

3. CRUD API with Node.js and PostgreSQL: Send HTML Emails

CRUD API with Node.js and PostgreSQL: Send HTML Emails

4. API with Node.js, Prisma & PostgreSQL: Forget/Reset Password

API with Node.js, Prisma & PostgreSQL: Forget/Reset Password

About

In this article, you’ll learn how to implement JWT authentication with access and refresh tokens using Node.js, ExpressJs, Prisma, PostgreSQL, Redis, and Docker-compose.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •