A REST API service built to register users, companies, and email templates to the database via APIs and send the registered email templates as bulk emails to the registered companies.
Replace the .env.example file in the root directory with .env Then edit your environment variables
Clone this repository
➜ git clone https://github.com/burakturnaa/mailoop.git
➜ cd ./mailoopInstall dependencies
➜ go mod downloadRun
➜ go run main.goBuild
➜ go buildIf you had installed make utility
Run
➜ make runBuild
➜ make buildWatch for file changes and reload
➜ make watchLogin
POST /api/auth/loginRegister
POST /api/auth/registerCheck token
GET /api/auth/check_tokenGet all companies
GET /api/company/Get company by id
GET /api/company/:idCreate company
POST /api/company/Update company
PUT /api/company/:idDelete company
DELETE /api/company/:idGet all mail templates
GET /api/mailtemp/Get mail template by id
GET /api/mailtemp/:idCreate mail template
POST /api/mailtemp/Update mail template
PUT /api/mailtemp/:idDelete mail template
DELETE /api/mailtemp/:idSend email
POST /api/mail/sendGet all logs
GET /api/log/