Skip to content
This repository was archived by the owner on Jun 9, 2023. It is now read-only.

Commit 7d6a8fc

Browse files
eolculnamo2vaibhavsingh97
authored andcommitted
add email service with nodemailer (#146)
* add email service with nodemailer * fix linting issue * fix test error * add .env, dotenv dependency, and env vars
1 parent 0ed0d16 commit 7d6a8fc

File tree

10 files changed

+421
-6
lines changed

10 files changed

+421
-6
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ Install dependencies:
8080
npm install
8181
```
8282

83+
Setup Environment Variables:
84+
Copy and paste env.sample into your .env file
85+
8386
Ensure that Docker Desktop is up and running, then run the following command:
8487
```
8588
docker-compose up
@@ -91,7 +94,7 @@ The server will automatically restart anytime you save a `.ts` or `.js` file wit
9194

9295
You can run any command within the container by prefixing it with `docker-compose exec app`, e.g. `docker-compose exec app npm install express`
9396

94-
## Testing
97+
## Testing
9598
Run tests
9699
```
97100
npm run test

env.sample

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CHAPTER_EMAIL = '[email protected]'
2+
EMAIL_USERNAME = 'emailUsernamePlaceholder'
3+
EMAIL_PASSWORD = 'emailPasswordPlaceholder'
4+
EMAIL_SERVICE = 'emailServicePlaceholder'

package-lock.json

Lines changed: 216 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)