qoollo / go-sms-api

Qoollo SMS service with API on Golang.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go SMS API

Qoollo SMS service with GRPC and HTTP API on Golang

Usage

Preparations

Edit config.yaml

Installation

$ go build

Running

$ sudo ./go-sms-api # sudo is required

Running using Docker

Build an image

$ docker build -t smsapi .

..and run it mounting config file and /dev folder as volumes to access serial ports from the docker container

$ docker run -v ${PWD}/config.yaml:/config.yaml -v /dev:/dev --privileged -p 3201:3201 -p 3200:3200 smsapi

Development

Dependencies

$ export GO111MODULE=off

$ go get github.com/grpc-ecosystem/grpc-gateway

$ go get github.com/envoyproxy/protoc-gen-validate

$ cd ~/go/src/github.com/grpc-ecosystem/grpc-gateway
$ mkdir third_party && cd third_party
$ git clone https://github.com/googleapis/googleapis.git

About

Qoollo SMS service with API on Golang.

License:MIT License


Languages

Language:Go 88.4%Language:Makefile 7.2%Language:Dockerfile 4.4%