This commit is contained in:
parent
74a7a7d66b
commit
a2bd26b9f3
11
README.md
11
README.md
|
@ -13,3 +13,14 @@
|
|||
<p align="center">
|
||||
<strong><a href="https://github.com/leafac/www.kill-the-newsletter.com">Source</a></strong> • <img alt=".github/workflows/main.yml" src="https://github.com/leafac/www.kill-the-newsletter.com/workflows/.github/workflows/main.yml/badge.svg" />
|
||||
</p>
|
||||
|
||||
# Running Locally
|
||||
|
||||
Install [Node.js](https://nodejs.org/) and run:
|
||||
|
||||
```console
|
||||
$ npm install
|
||||
$ npm develop
|
||||
```
|
||||
|
||||
The web server will be running at `http://localhost:8000` and the email server at `smtp://localhost:2525`.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { webServer, emailServer, feedPath, feedEmail } from ".";
|
||||
import { createTransport } from "nodemailer";
|
||||
import nodemailer from "nodemailer";
|
||||
import fetch from "node-fetch";
|
||||
import fs from "fs";
|
||||
|
||||
|
@ -10,7 +10,7 @@ test("create feed", async () => {
|
|||
});
|
||||
|
||||
describe("receive email", () => {
|
||||
const transporter = createTransport({
|
||||
const transporter = nodemailer.createTransport({
|
||||
host: "localhost",
|
||||
port: 2525,
|
||||
tls: { rejectUnauthorized: false }
|
||||
|
|
Loading…
Reference in New Issue