Skip to content

rafael-vasconcellos/email-service

Repository files navigation

Application

make a POST request on api/email with the following body

name?: string
email: string
subject: string
body: string

Enviroment variables

HOST, PORT, USER, PASS (provider's credentials)

Installation

$ npm  install

Running the app

# development
$ npm  run  start

# watch mode
$ npm  run  start:dev

# production mode
$ npm  run  start:prod

Test

# unit tests
$ npm  run  test

# e2e tests
$ npm  run  test:e2e

# test coverage
$ npm  run  test:cov