{"id":14967576,"url":"https://github.com/wpcodevo/node_prisma_postgresql","last_synced_at":"2025-04-09T12:07:49.928Z","repository":{"id":121164460,"uuid":"493266933","full_name":"wpcodevo/node_prisma_postgresql","owner":"wpcodevo","description":"In this article, you’ll learn how to implement JWT authentication with access and refresh tokens using Node.js, ExpressJs, Prisma, PostgreSQL, Redis, and Docker-compose.","archived":false,"fork":false,"pushed_at":"2024-11-06T09:53:04.000Z","size":115,"stargazers_count":66,"open_issues_count":0,"forks_count":18,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T05:09:13.377Z","etag":null,"topics":["nodejs","nodemailer","postgresql","pug","typescript"],"latest_commit_sha":null,"homepage":"https://codevoweb.com/crud-api-node-js-and-postgresql-send-html-emails","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wpcodevo.png","metadata":{"files":{"readme":"readMe.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-17T13:38:15.000Z","updated_at":"2024-11-28T21:41:56.000Z","dependencies_parsed_at":"2025-02-21T07:11:20.636Z","dependency_job_id":"8faae59b-7841-4866-be61-e98ea62d2b4e","html_url":"https://github.com/wpcodevo/node_prisma_postgresql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Fnode_prisma_postgresql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Fnode_prisma_postgresql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Fnode_prisma_postgresql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Fnode_prisma_postgresql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpcodevo","download_url":"https://codeload.github.com/wpcodevo/node_prisma_postgresql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248036067,"owners_count":21037092,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nodejs","nodemailer","postgresql","pug","typescript"],"created_at":"2024-09-24T13:38:17.888Z","updated_at":"2025-04-09T12:07:49.903Z","avatar_url":"https://github.com/wpcodevo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js API with Prisma, TypeScript, and PostgreSQL\n\n## Setup Node.js API with Prisma, TypeScript, and PostgreSQL\n\n![Setup Node.js API with Prisma, TypeScript, and PostgreSQL](https://codevoweb.com/wp-content/uploads/2022/05/API-Node.js-TypeScript-Prisma-PostgreSQL-Project-Setup.webp)\n\nIn this comprehensive article, you'll learn how to set up a Node.js API Project with ExpressJs, Prisma, PostgreSQL, Redis, and Docker-compose. The API will run on an Express server and use Postgres for data storage.\n\n### Topics Covered\n\n- Initialize a Prisma Project with Express.js\n- Generate a database schema with the Prisma CLI\n- Defining the User Model with Prisma\n- Database Migration with Prisma\n- Connect the ExpressJs App to the Redis Server\n- Connecting to PostgreSQL and Redis with MySQL VS Code Extension\n\nRead the entire article here: [https://codevoweb.com/api-node-typescript-prisma-postgresql-project-setup](https://codevoweb.com/api-node-typescript-prisma-postgresql-project-setup)\n\n## Node.js + Prisma + PostgreSQL: Access \u0026 Refresh Tokens\n\n![Node.js + Prisma + PostgreSQL: Access \u0026 Refresh Tokens](https://codevoweb.com/wp-content/uploads/2022/05/Node.js-Prisma-PostgreSQL-Access-Refresh-Tokens.webp)\n\nIn this article, you’ll learn how to implement JWT authentication with access and refresh tokens using Node.js, ExpressJs, Prisma, PostgreSQL, Redis, and Docker-compose.\n\n### Topics Covered\n\n- JWT Authentication Example with Node.js, Prisma, and PostgreSQL\n- User Login and Registration Flow with JSON Web Tokens\n- Create the User Model with Prisma\n- Create Validation Schemas with Zod\n- Create Middleware to Parse Zod Schema\n- Password Management with Bcryptjs\n- Create Services to Interact with the Database\n- Authentication with JSON Web Tokens (JWT)\n- Create Authentication Controllers\n- Create User Controller\n- Create Authentication Middleware\n- Create Authentication Routes\n- Create User Routes\n- Add the Routes to the Middleware Stack\n- Database Migration with Prisma\n- Testing the JSON Web Token Authentication REST API\n\nRead the entire article here: [https://codevoweb.com/node-prisma-postgresql-access-refresh-tokens](https://codevoweb.com/node-prisma-postgresql-access-refresh-tokens)\n\n## CRUD API with Node.js and PostgreSQL: Send HTML Emails\n\n![CRUD API with Node.js and PostgreSQL: Send HTML Emails](https://codevoweb.com/wp-content/uploads/2022/05/CRUD-API-with-Node.js-and-PostgreSQL-Send-HTML-Emails.webp)\n\nIn this article, you'll learn how to send HTML Emails with Node.js, Nodemailer, Prisma, PostgreSQL, Express, and Docker-compose. We'll create a generic class that can be used to send single or multiple emails at once by chaining the methods together.\n\n### Topics Covered\n\n- Send Emails with Node.js, Nodemailer, Prisma Overview\n- Setting up ExpressJs Templating Engine with Pug\n- Create a Utility Class to the Send Emails\n  - Get the Nodemailer Credentials\n  - Define the Email Class Attributes\n  - Create a Nodemailer Transporter\n  - Create a Method to Generate the Email Templates\n  - Create a Method to Send the Emails\n- Creating the Email Templates with Pug\n- Run Prisma Migration to Update PostgreSQL Schema\n- Update the User Registration Controller to Send the Emails\n- Create a Route Handler to Verify the Email\n- Update the Login Controller\n\nRead the entire article here: [https://codevoweb.com/crud-api-node-js-and-postgresql-send-html-emails](https://codevoweb.com/crud-api-node-js-and-postgresql-send-html-emails)\n\n## API with Node.js, Prisma \u0026 PostgreSQL: Forget/Reset Password\n\n![API with Node.js, Prisma \u0026 PostgreSQL: Forget/Reset Password](https://codevoweb.com/wp-content/uploads/2022/05/API-with-Node.js-Prisma-PostgreSQL-Forget-Reset-Password.webp)\n\nIn this article, you'll learn how to implement forget/reset passwords with Node.js, Prisma, PostgreSQL, Nodemailer, Redis, Docker-compose, and Pug. Also, you will learn how to dynamically generate HTML Email templates with Pug and send them via SMTP to the user's Email inbox.\n\n### Topics Covered\n\n- Forget/Reset Password Flow in Node.js\n- Update the Prisma User Model\n- Run the Prisma Migration Command to Update the Database\n- Update the Zod User Schema\n- Create Services to Query and Mutate the Database\n- Create a Utility Class to Send Emails\n- Create Controllers\n  - Forgot Password Controller\n  - Create the Password Reset Controller\n- Add the Routes to the Middleware Pipeline\n\nRead the entire article here: [https://codevoweb.com/crud-api-node-prisma-postgresql-reset-password](https://codevoweb.com/crud-api-node-prisma-postgresql-reset-password)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpcodevo%2Fnode_prisma_postgresql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpcodevo%2Fnode_prisma_postgresql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpcodevo%2Fnode_prisma_postgresql/lists"}