GithubHelp home page GithubHelp logo

dheia / whatsapp-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from erickchann/whatsapp-server

0.0 0.0 0.0 304 KB

Website to send whatsapp chat, brodcast and etc.

Shell 0.68% JavaScript 9.61% PHP 67.94% HTML 0.60% Vue 7.36% Blade 13.81%

whatsapp-server's Introduction

Baileys Restful API with Laravel

An implementation of @adiwajshing/Baileys as a simple RESTful API service with multiple device support.

Credits

  1. Framework : Laravel 8 & VueJs 2
  2. API Server : @ookamiiixd/baileys-api

Frontend Vue Installation

  1. Enter to the backend project directory cd frontend-vue.
  2. Execute npm i to install the dependencies.
  3. You can start the app by executing npm run serve
  4. Now the endpoint should be available according to environment variable settings at http://localhost:5000.

Backend Laravel Installation

  1. First clone or download this repository:
git clone https://github.com/erickchann/whatsapp-server.git
  1. Enter directory project cd backend-laravel
  2. Execute composer install to install the dependencies.
  3. Setting the database configuration, rename .env.example to .env and open file at project root directory or execute cp .env.example .env
DB_DATABASE=**your_db_name**
DB_USERNAME=**your_db_user**
DB_PASSWORD=**password**
  1. Setting the URL backend server configuration, open .env file at project root directory
URL_WA_SERVER=http://localhost:8000
  1. Run the following command at the terminal:
php artisan migrate:fresh --seed
  1. Run laravel
php artisan serve --port=3000

Backend Express Installation

Simple RESTful WhatsApp API by @ookamiiixd/baileys-api .

  1. Enter to the backend project directory cd backend-express.
  2. Execute npm i to install the dependencies.
  3. You can start the app by executing npm run start or node ..
  4. Now the endpoint should be available according to your environment variable settings. Default is at http://localhost:8000.

Backend API DOCs

The API documentation is available online at here. You can also import the Postman Collection File (postman_collection.json) into your Postman App alternatively.

The server will respond in JSON format:

{
    success: true|false, // bool
    message: "", // string
    data: {} // object
}

Features

  • Send chat
  • Send brodcast
  • Send chat one to many (in development)
  • Send chat many to one (in development)
  • Send chat many to many (in development)
  • Send chat to group (Soon)
  • Get chat Conversation (Soon)

whatsapp-server's People

Contributors

erickchann avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.