@ -0,0 +1,14 @@
version: '3.2'
services:
whatsapp_go:
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
build:
context: .
dockerfile: ./docker/golang.Dockerfile
restart: 'always'
ports:
- "3000:3000"
@ -0,0 +1,23 @@
############################
# STEP 1 build executable binary
FROM golang:alpine AS builder
RUN apk update && apk add --no-cache vips-dev gcc musl-dev gcompat
WORKDIR /whatsapp
COPY ./src .
# Fetch dependencies.
RUN go mod download
# Build the binary.
RUN go build -o app
#############################
## STEP 2 build a smaller image
FROM alpine
RUN apk update && apk add --no-cache vips-dev
# Copy compiled from builder.
COPY --from=builder /whatsapp .
# Run the binary.
ENTRYPOINT ["./app"]
@ -1,6 +1,6 @@
## Go Whatsapp API Multi Device Version
### Required
### Required (without docker)
- Mac OS:
- `brew install vips`
@ -14,13 +14,28 @@
### How to use
#### Basic
1. Clone this repo `git clone https://github.com/aldinokemal/go-whatsapp-web-multi-device`
2. run `go run main.go`
3. open `http://localhost:3000`
2. open via cmd/terminal
3. run `cd src`
4. run `go run main.go`
5. open `http://localhost:3000`
#### Docker (you don't need to install in required)
3. run `docker-compose up -d --build`
4. open `http://localhost:3000`
## Production Mode (without config)
- `docker run --publish 3000:3000 --restart=always aldinokemal2104/go-whatsapp-web-multidevice`
You can fork or edit this source code !
### Current API
`You can check docs/openapi.yml for detail API`
| Feature | Menu | Method | URL | Payload |
|---------|-------------------------|--------|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|