This project provides an API gateway to send messages and media to WhatsApp using whatsapp-web.js. It allows users to interact with WhatsApp through a RESTful interface, enabling the sending of text messages and media (images, videos, etc.) to specified phone numbers.
Built with the tools and technologies:
Before getting started with wa-gateway, ensure your runtime environment meets the following requirements:
- Programming Language: JavaScript
- Package Manager: Npm
- Container Runtime: Docker
Install wa-gateway using one of the following methods:
Build from source:
- Clone the wa-gateway repository:
❯ git clone https://github.com/tuxedo-labs/wa-gateway
- Navigate to the project directory:
❯ cd wa-gateway
- Install the project dependencies:
❯ npm install
❯ docker build -t tuxedo-labs/wa-gateway .
Run wa-gateway using the following command:
Using npm
❯ npm start
❯ docker run -it {image_name}
Run the test suite using the following command:
Using npm
❯ npm test
- 💬 Join the Discussions: Share your insights, provide feedback, or ask questions.
- 🐛 Report Issues: Submit bugs found or log feature requests for the
wa-gateway
project. - 💡 Submit Pull Requests: Review open PRs, and submit your own PRs.
Contributing Guidelines
- Fork the Repository: Start by forking the project repository to your github account.
- Clone Locally: Clone the forked repository to your local machine using a git client.
git clone https://github.com/tuxedo-labs/wa-gateway
- Create a New Branch: Always work on a new branch, giving it a descriptive name.
git checkout -b new-feature-x
- Make Your Changes: Develop and test your changes locally.
- Commit Your Changes: Commit with a clear message describing your updates.
git commit -m 'Implemented new feature x.'
- Push to github: Push the changes to your forked repository.
git push origin new-feature-x
- Submit a Pull Request: Create a PR against the original project repository. Clearly describe the changes and their motivations.
- Review: Once your PR is reviewed and approved, it will be merged into the main branch. Congratulations on your contribution!