Skip to content

prasetyowira/message

Repository files navigation

Messaging API

GitHub Workflow Status CI Go Report Card GolangCI

A Messaging with Golang for Warung Pintar recruitment assignment

Getting started

Go Version: 1.14

This project requires Go to be installed. On OS X with Homebrew you can just run brew install go.

Running it then should be as simple as:

$ make up
$ make start
$ make run

Or running inside docker

$ make up
$ make start
$ docker-compose -f docker-compose.prod.yml up -d

REST API

$ make start
GET/POST http://127.0.0.1:8000/message
GET http://127.0.0.1:8000/message/{id}

Open openapi doc on port 127.0.0.1:81

Graphql

GET/POST http://127.0.0.1:8000/graphql

To explore more, open graphql playground

GET http://127.0.0.1:8000/playground

Websocket

ws://127.0.0.1:8000/ws

To use, open sample client

GET http://127.0.0.1:8000/websocket

GRPC

http://127.0.0.1:8001

.proto file

./api/proto/messaging/v1

if you run with bloomRPC, make sure the import path is {project_dir}/api/proto

Testing

make test