Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ogubuikealex/how-to-implement-magic-link-in-node.js-with-nodemailer-and-gmail

This repo has the code sample for my article, "How to Implement Magic Link in Node.JS With Nodemailer, and Gmail"
https://github.com/ogubuikealex/how-to-implement-magic-link-in-node.js-with-nodemailer-and-gmail

gmail javascript jsonwebtoken nodejs nodemailer

Last synced: 8 days ago
JSON representation

This repo has the code sample for my article, "How to Implement Magic Link in Node.JS With Nodemailer, and Gmail"

Awesome Lists containing this project

README

        

# How-to-Implement-Magic-Link-in-Node.JS-With-Nodemailer-and-Gmail
This repo has the code sample for my article, ["How to Implement Magic Link in Node.JS With Nodemailer, and Gmail"](https://medium.com/@ogubuikealex/how-to-implement-passwordless-authentication-in-node-js-with-nodemailer-and-gmail-4e6ee338a897)

## Authors

- [Ogubuike Alexandra](https://www.linkedin.com/in/ogubuike-alex/)

## Tech Stack

**Server:** Node, Express, Nodemailer, Jsonwebtokens, Gmail

## Run Locally

Clone the project

```bash
git clone https://github.com/king-Alex-d-great/How-to-Implement-Magic-Link-in-Node.JS-With-Nodemailer-and-Gmail.git
```

Go to the project directory

```bash
cd my-project
```

Install dependencies

```bash
npm install
```

Start the server

```bash
node index.js
```
## Environment Variables

To run the endpoints in this API project, you will need to add the following environment variables to your .env file

`EMAIL_ADDRESS`

`EMAIL_PASSWORD`

`JWT_SECRET_KEY`

Check the `.env.test` to see a sample