- Notifications
You must be signed in to change notification settings - Fork0
This article will teach you how to create a CRUD RESTful API in a Golang environment that runs on a Gin Gonic server and uses a PostgreSQL database. We’ll also discuss how you can build models, connect to the running SQL database server, and run database migrations with the GORM library.
khalidtouch/golang-gorm-postgres
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This article will teach you how to add a secure forgot/reset password feature to a Golang RESTful API application. We will generate the HTML Email templates with the standard Golang template package and send them via SMTP with the Gomail package.
- Forgot Password and Password Reset Flow
- Create the Database Models with GORM
- Create an SMTP Account
- Setup the HTML Templates
- Add the Email Template CSS
- Add the Password Reset HTML Template
- Encoding/Decoding the Password Reset Code
- Create a Utility Function to Send the Emails
- Add the Forgot Password Route Handler
- Add the Reset Password Route Handler
- Add the API Routes to the Gin Middleware Stack
Read the entire article here:https://codevoweb.com/forgot-reset-passwords-in-golang-with-html-email
Articles in this series:
How to Setup Golang GORM RESTful API Project with Postgres
API with Golang + GORM + PostgreSQL: Access & Refresh Tokens
Golang and GORM - User Registration and Email Verification
About
This article will teach you how to create a CRUD RESTful API in a Golang environment that runs on a Gin Gonic server and uses a PostgreSQL database. We’ll also discuss how you can build models, connect to the running SQL database server, and run database migrations with the GORM library.
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Languages
- Go100.0%