This commit is contained in:
Leandro Facchinetti 2020-03-19 10:48:31 -04:00
parent 74a7a7d66b
commit a2bd26b9f3
2 changed files with 13 additions and 2 deletions

View File

@ -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`.

View File

@ -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 }