monkeytype/backend
Jack 1ca0fd1b23
Custom email (#3964)
* added nodemailer and mjml

* added email template

* basic email util file

* added email queue

* email worker

* renamed folder

* showing which queues and workers were initialized

* initializing email on server boot
added some test code

* renamed to email worker

* type fix

* renamed queue

* added queue to list

* added worker to list

* logging when config was verified

* handling send mail result

* not minifying (not supported anymore)
using .html property
returning correct value

* dont send me emails

* added port to .env

* updated example

* updated test email

* using env email

* parseint base

* message

* refactor

* message

* rename

* moved email templates

* using async file read

* typo

* using mustache

* moved file
renamed to email client

* logging with prometheus

* added social links

* line

* using stronger types (object instead of array of any[])
moved prometheus logging into email client
added function to send mail using a template

* fixed templates not working

* removed console log

* name change

* rename

* moved templates

* rename

* string interpolation

* string interpolation

* moved to dev dependencies, exact versions

* moved types

* removed function, remove unnecessary if

* update template params

* updated name

* fixed button not clickable

* throwing

* moved template metadata to one place

* rename

* sending email on account creation

* removed test code
removed await

* fixed button

* not stopping the server if email client validation failed

* added metric for queue lengths

* exposing getjobcounts

* added job to log queue lengths

* added endpoint to request verification email

* using send verification email that calls api instead of firebase built in

* updated route

* renamed function

* recording time to complete

* returning 400 if email already verified

* setting transport initialized to true earlier, setting it to false if caught error

* moved forgot password flow to a simple popup, added new endpoint to ape

* added forgotpasswordemail route

* added email tempalte

* setting transport to false if caught error

* added email queue function

* moved try higher

* fixed log
2023-02-13 13:24:43 +01:00
..
__tests__ Add typescript support for jest (#3949) rizwanmustafa 2023-01-26 14:13:14 +01:00
email-templates Custom email (#3964) 2023-02-13 13:24:43 +01:00
private showing error when fetch failed 2023-01-24 14:03:31 +01:00
redis-scripts Add weekly xp leaderboards backend (#3511) Bruception 2022-11-28 14:10:02 +01:00
src Custom email (#3964) 2023-02-13 13:24:43 +01:00
.gitignore fixed ignore 2022-03-07 14:39:09 +01:00
docker-compose.yml Add docker-compose and instructions to README (#2939) sondrekje 2022-05-05 01:52:17 +02:00
example.env Custom email (#3964) 2023-02-13 13:24:43 +01:00
jest-mongodb-config.js Feature/backend test (#2937) sondrekje 2022-05-05 15:19:31 +02:00
jest.config.ts Add typescript support for jest (#3949) rizwanmustafa 2023-01-26 14:13:14 +01:00
package-lock.json Custom email (#3964) 2023-02-13 13:24:43 +01:00
package.json Custom email (#3964) 2023-02-13 13:24:43 +01:00
tsconfig.json Move backend source files into src folder (#2943) 2022-05-05 19:27:00 +02:00