/nestjs-resend-email

The objective of this project was to test an email sending service, called Resend, created by a Brazilian developer. In addition, I used a boilerplate in NestJS that authenticates and creates users.

Primary LanguageTypeScript

NestJS Resend - Mail Service 🚀

image The objective of this project was to test an email sending service, called Resend, created by a Brazilian developer. In addition, I used a boilerplate in NestJS that authenticates and creates users.

💻 Developing differences...

  • Built with NestJS and Prisma
  • Testing
  • SOLID
  • TypeScript

🚀 Technologies Used

BACK-END:

  • NodeJS
  • NestJS
  • Jest
  • Prisma

📋 Installation:

Server

Then, to run the project:

$ pnpm install
$ pnpm run start:dev

After that, to start the server, run:

$ npx prisma studio

pnpm install

  1. Create the .env file cp .env.example .env

  2. to generate keys openssl rand -base64 32

  3. define variables .env:

DATABASE_URL=""
SESSION_SECRET=""
APP_NAME=""
APP_DESCRIPTION=""
ACCESS_TOKEN_COOKIE_NAME=""
ACCESS_TOKEN_SECRET=""
ACCESS_TOKEN_EXPIRATION_TIME=
JWT_SECRET=""
RESEND_API_KEY=""
  1. Lift the database docker compose up -d

  2. Run: pnpm run start