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.
- Built with NestJS and Prisma
- Testing
- SOLID
- TypeScript
- NodeJS
- NestJS
- Jest
- Prisma
Then, to run the project:
$ pnpm install
$ pnpm run start:dev
After that, to start the server, run:
$ npx prisma studio
-
Create the .env file
cp .env.example .env
-
to generate keys
openssl rand -base64 32
-
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=""
-
Lift the database
docker compose up -d
-
Run:
pnpm run start