Skip to content

rishinair11/notification-server-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

Steps to Install

Get source code

go get github.com/rishinair11/notification-server-go/src

Move to source code directory

cd $GOPATH/src/github.com/rishinair11/notification-server-go

Build source code

make

Build docker image

make package

Steps to Run

docker run --name notification-server -p 5252:5252 --env USERNAME=<MAILTRAP_USERNAME> --env PASSWORD=<MAILTRAP_PASSWORD> --env HOST=smtp.mailtrap.io --env PORT=2525 --env FROM=<FROM_EMAIL> notification-server-go:latest

Sample Request

URL - http://localhost:5252/mail METHOD - POST REQUEST BODY -

{
	"emailID": "test@email.com",
	"subject": "test",
    "body": "hello"
}

About

Notification server that sends a notification email when an event occurs (REST)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •