feat: projeto whatsapp-api-oficial — wrapper Meta Cloud API

API Node.js/Express que encapsula a Meta Cloud API (Graph API v21.0):
- POST /account/configure/:accountId — salva credenciais WABA no SQLite
- GET  /account/status/:accountId   — verifica credenciais via Meta API
- POST /message/send/:accountId     — envia texto, template ou mídia
- GET  /templates/:accountId        — lista templates aprovados da WABA
- GET  /webhooks/meta               — verificação de token (Meta handshake)
- POST /webhooks/meta               — recebe eventos Meta e repassa ao sys
- Dockerfile + docker-compose.yml com Traefik (apimsgoficial.neuralsys.com.br)
- Swagger em /api-docs com autenticação por x-api-key

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-20 16:49:24 -03:00
commit 995f211288
18 changed files with 736 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
FROM node:20-alpine
WORKDIR /usr/src/app
ENV NODE_ENV=production
RUN apk add --no-cache tini ca-certificates
COPY package*.json ./
# better-sqlite3 precisa de build tools (python/make/g++) para compilar no Alpine.
RUN apk add --no-cache --virtual .build-deps python3 make g++ && \
npm install --omit=dev --no-audit --no-fund && \
apk del .build-deps
COPY . .
EXPOSE 3001
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["npm", "start"]