Login and Register system integrated with two factor authentication (Password and Email), where user is required to input the 4 digit OTP code sent by system to their email which will be expired in 4 minutes. This project using Golang net/http standard library of version 1.22, PostgreSQL, REDIS, and Resend for email notification.
- Login Form
- OTP Code Sent by Email
- Valid OTP indicate the login process is Successful
- Have PostgreSQL & Redis installed and run on your machine
- Create new database
- Edit
.env
by applying your configuration - For
RESEND_API_KEY
can be obtained by sign in into https://resend.com/
- Clone this repo by run following script
git clone https://github.com/W-ptra/Golang_CRUD_API.git
- Change Directory to main folder & Download all dependency
cd Golang_CRUD_API
go mod download
- Run the main.go & api.go
go run main.go api.go