message

package module
v0.0.0-...-a671794 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2020 License: MIT Imports: 0 Imported by: 0

README

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

Documentation

Overview

nolint

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL