You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Dimas Restu H a9e80e09aa add capabilities to send link (but still no preview) 4 years ago
.vscode base skeleton using echo v4 4 years ago
cmd/main wip integrated swagger docs 4 years ago
dbs construct base function for whatsapp multidevice 4 years ago
docs add capabilities to send link (but still no preview) 4 years ago
internal add capabilities to send link (but still no preview) 4 years ago
pkg add capabilities to send link (but still no preview) 4 years ago
.dockerignore construct base function for whatsapp multidevice 4 years ago
.env.default update add option to send one message at a time 4 years ago
.env.development update add option to send one message at a time 4 years ago
.env.production update add option to send one message at a time 4 years ago
.gitignore construct base function for whatsapp multidevice 4 years ago
.goreleaser.yml update build configuration for goreleaser and docker 4 years ago
Dockerfile update Dockerfile final image to use alpine base 4 years ago
Makefile update make gen-docs individually executed 4 years ago
README.md add integrated swagger api docs 4 years ago
go.mod wip integrated swagger docs 4 years ago
go.sum wip integrated swagger docs 4 years ago

README.md

Go WhatsApp Multi-Device Implementation in REST API

This repository contains example of implementation go.mau.fi/whatsmeow package. This example is using a labstack/echo version 4.x.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Prequisites package:

  • Go (Go Programming Language)
  • Make (Automated Execution using Makefile)

Optional package:

  • GoReleaser (Go Automated Binaries Build)
  • Docker (Application Containerization)

Installing

Below is the instructions to make this codebase running:

  • Create a Go Workspace directory and export it as the extended GOPATH directory
cd <your_go_workspace_directory>
export GOPATH=$GOPATH:"`pwd`"
  • Under the Go Workspace directory create a source directory
mkdir -p src/github.com/dimaskiddo/go-whatsapp-multidevice-rest
  • Move to the created directory and pull codebase
cd src/github.com/dimaskiddo/go-whatsapp-multidevice-rest
git clone -b master https://github.com/dimaskiddo/go-whatsapp-multidevice-rest.git .
  • Run following command to pull dependecies package
make vendor
  • Until this step you already can run this code by using this command
ln -sf .env.development .env
make run

Running The Tests

Currently the test is not ready yet :)

Deployment

To build this code to binaries for distribution purposes you can run following command:

make release

The build result will shown in build directory

API Access

You can access any endpoint under BASE_URL environment variable which by default located at .env file.

Integrated API Documentation can be accessed in BASE_URL/docs/index.html or by default it's in 127.0.0.1:3000/api/v1/whatsapp/docs/index.html

Built With

  • Go - Go Programming Languange
  • GoReleaser - Go Automated Binaries Build
  • Make - GNU Make Automated Execution
  • Docker - Application Containerization

Authors

  • Dimas Restu Hidayanto - Initial Work - DimasKiddo

See also the list of contributors who participated in this project

Annotation

You can seek more information for the make command parameters in the Makefile