/haskell-mailer

A personal newsletter mailer app in Haskell

Primary LanguageHaskellMIT LicenseMIT

haskell-mailer

E2E Testing

A simple personal newsletter mailing app.

🚧 TODO: IN PROGRESS

  • Email preview

Requires

Running

The following environment variables need to be set for production:

  • MYMAILER_URL: The URL of the app
  • MYMAILER_SENDER: FROM Sender Address
  • MYMAILER_ADMIN_EMAIL: The e-mail address to send admin messages to
  • MYMAILER_DOMAIN: SMTP domain
  • MYMAILER_LOGIN: SMTP login name
  • MYMAILER_PASSWORD: SMTP password
  • MYMAILER_PORT: SMTP port (defaults to 465 if MYMAILER_DOMAIN is set)
  • MYMAILER_DB: Postgres DB name
  • MYMAILER_DB_HOST: Postgres DB host
  • MYMAILER_DB_PASSWORD: Postgres DB password
  • MYMAILER_AUTH_PASSWORD: Password for app login/auth (unprotected if left blank)

For development and testing, these can all be left blank.

Then run the app using cabal

$ cabal run

This will launch a dev server at http://localhost:8080. Postgres and mailpit will need to be running for dev.

End to end testing

Requires Mailpit to be installed in path OR to be running on localhost:8025 (API) and localhost:1025 (SMTP).

$ npm run test