Skip to content

A REST API service built with Golang/Fiber using Mongo, including CRUD operations, validations, JWT authentication, routing and more.

Notifications You must be signed in to change notification settings

burakturnaa/mailoop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mailoop App (GoFiber - Mongodb - JWT)

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.

Getting Started

Environment Config

Replace the .env.example file in the root directory with .env Then edit your environment variables

Clone the repository

Clone this repository

➜ git clone https://github.com/burakturnaa/mailoop.git
➜ cd ./mailoop

Install dependencies

➜ go mod download

Run

➜ go run main.go

Build

➜ go build

Working with makefile

If you had installed make utility

Run

➜ make run

Build

➜ make build

Watch for file changes and reload

➜ make watch

API References

Authentication

Login

POST /api/auth/login

Register

POST /api/auth/register

Check token

GET /api/auth/check_token

CRUD Company

Get all companies

GET /api/company/

Get company by id

GET /api/company/:id

Create company

POST /api/company/

Update company

PUT /api/company/:id

Delete company

DELETE /api/company/:id

CRUD Mail Template

Get all mail templates

GET /api/mailtemp/

Get mail template by id

GET /api/mailtemp/:id

Create mail template

POST /api/mailtemp/

Update mail template

PUT /api/mailtemp/:id

Delete mail template

DELETE /api/mailtemp/:id

Mail Sender

Send email

POST /api/mail/send

LOGS

Get all logs

GET /api/log/

About

A REST API service built with Golang/Fiber using Mongo, including CRUD operations, validations, JWT authentication, routing and more.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published