Skip to content

batubond007/MSS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

Change to ./build directory, then

docker-compose up

Mock Data

To drop mock data

go run .\.build\build.go Drop

To insert mock user data

go run .\.build\build.go InsertUser

To insert mock message data

go run .\.build\build.go InsertMessage

API'S

Register request is used to register to messaging service.

curl --location 'http://localhost:8080/register' \ --header 'Content-Type: application/json' \ --data '{ "phone": "+905553333333", "password": "password" }'

Unregister request is used to unregister to messaging service.

curl --location 'http://localhost:8080/unregister' \ --header 'Content-Type: application/json' \ --data '{ "phone": "+905553333333", "password": "password" }'

Sent List request returns the sent messages for user.

curl --location 'http://localhost:8080/sent-list/?page_size=4' \ --header 'Content-Type: application/json' \ --data '{ "phone": "+905551111111", "password": "password" }'

The Clean Architecture

image

Domain Driven Design

image

About

Go DDD(Domain Driven Design) example - Message Sending System

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages