This project implements an email OTP (One-Time Password) service that simulates sending OTP emails to the specified email addresses. Instead of actually sending emails, it prints the OTP details to the console.
- Email addresses are limited to a maximum of 100 characters.
- The project uses an in-memory database for simplicity. Any data stored will be lost upon restarting the application.
- Go programming language (go version go1.19.4 darwin/amd64 )
-
Clone the repository:
git clone https://github.com/jainritik/email-otp.git
-
Navigate to the project directory:
cd email-otp
-
Run the following command to download the project dependencies:
go mod tidy && go mod vendor
-
Start the application by running the main.go file:
go run main.go
-
The application should now be running and ready to accept requests.