Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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"
- Host: GitHub
- URL: https://github.com/ogubuikealex/how-to-implement-magic-link-in-node.js-with-nodemailer-and-gmail
- Owner: ogubuikeAlex
- License: mit
- Created: 2023-09-16T01:18:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-16T01:46:47.000Z (over 1 year ago)
- Last Synced: 2025-01-08T11:19:40.349Z (15 days ago)
- Topics: gmail, javascript, jsonwebtoken, nodejs, nodemailer
- Language: JavaScript
- Homepage: https://medium.com/@ogubuikealex/how-to-implement-passwordless-authentication-in-node-js-with-nodemailer-and-gmail-4e6ee338a897
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 VariablesTo 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