• This repository has been archived on 31/Jul/2023
  • Stars
    star
    130
  • Rank 277,575 (Top 6 %)
  • Language
    Go
  • Created over 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Go WhatsApp Implementation in REST API

Go WhatsApp Implementation in REST API

This repository contains example of implementation Rhymen/go-whatsapp package. This example is using a codebase from dimaskiddo/codebase-go-rest-lite.

Warning

Since WhatsApp is migrating to Multi-Device support then this repository might be unusable in the future. For Go WhatsApp REST with Multi-Device support please visit the new repository dimaskiddo/go-whatsapp-multidevice-rest

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)
  • Dep (Go Dependencies Management Tool)
  • 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-rest
  • Move to the created directory and pull codebase
cd src/github.com/dimaskiddo/go-whatsapp-rest
git clone -b master https://github.com/dimaskiddo/go-whatsapp-rest.git .
  • Run following command to pull dependecies package
make vendor
  • Until this step you already can run this code by using this command
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 Or use Docker Images available in dimaskiddo/go-whatsapp-rest

API Access

You can access any endpoint under ROUTER_BASE_PATH configuration by default located at /api/v1/whatsapp. Configuration files are located in share/etc directory.

Built With

  • Go - Go Programming Languange
  • Dep - Go Dependency Management Tool
  • 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

More Repositories

1

go-whatsapp-multidevice-rest

Go WhatsApp Multi-Device Implementation in REST API with Multi-Session/Account Support
Go
132
star
2

codebase-go-rest

Codebase for REST API in Go
Go
13
star
3

go-whatsapp-multidevice-gpt

Go WhatsApp Multi-Device Implementation as ChatGPT Bot
Go
11
star
4

codebase-nodejs-rest

Codebase for REST API in NodeJS
JavaScript
10
star
5

go-whatsapp-cli

Go WhatsApp Implementation in Command-Line Interface (CLI)
Go
8
star
6

openshift-templates

OpenShift Custom Catalog Templates
6
star
7

codebase-go-rest-lite

Codebase for REST API in Go (Lite)
Go
6
star
8

docker-registry-stack

An Internal or Private Container Registry Stack using Docker-Compose
5
star
9

terraform-proxmox

Terraform Proxmox Template
HCL
5
star
10

ethereum-explorer

Ethereum Blockchain Explorer
HTML
4
star
11

go-cron

Go-Cron an Alternative Cron Binaries for Containers
Go
4
star
12

docker-php-template

Docker for PHP Deployment Template
Shell
2
star
13

simple-py

Simple Python Programming Example
Python
2
star
14

docker-planka-stack

An Internal or Private Planka for Kanban Board Stack using Docker-Compose
1
star
15

helm-chart

Helm Chart Collection
1
star
16

ansible-datadog-agent

Ansible Playbook to Deploy Datadog Agent
Jinja
1
star
17

example-springboot-rest

Example of using SpringBoot for REST API
Java
1
star
18

socket.io-nodejs-chat

Socket.IO NodeJS Chat
HTML
1
star
19

ansible-sanoid

Ansible Playbook to Deploy ZFS Sanoid/Syncoid for Auto-Snapshot
HTML
1
star
20

terraform-gitlab

Terraform GitLab Template
HCL
1
star
21

ansible-galera-percona

Ansible Playbook to Deploy Percona MySQL Galera Cluster
Shell
1
star
22

ansible-zfs

Ansible Playbook to Deploy ZFS Storage
Shell
1
star
23

codebase-go-cli

Codebase for Command-Line Interface (CLI) Application in Go
Go
1
star
24

openshift-node-shell

OpenShift 3 Node Shell
Shell
1
star
25

dimaskiddo

Hey it's about me @dimaskiddo!
1
star
26

angka-terbilang-nodejs

NodeJS package for Converting Decimal to an Indonesian Wording format
JavaScript
1
star
27

ansible-mongo-percona

Ansible Playbook to Deploy Percona MongoDB Cluster
HTML
1
star
28

terraform-vsphere

Terraform vSphere Template
HCL
1
star
29

simple-go

Simple Go Programming Example
Go
1
star
30

ansible-k3s

Ansible Playbook to Deploy K3S Cluster
Jinja
1
star
31

ansible-elasticsearch

Ansible Playbook to Deploy ElasticSearch Single-Node or Cluster
Jinja
1
star
32

ansible-swap-file

Ansible Playbook to Enable Swap File
1
star