Welcome to the WhatsAppInSlack repository! This project seamlessly integrates your WhatsApp messages into Slack, making your communication much more efficient.
│ Dockerfile
│ .env.example
│ README.MD
│ docker-compose.yml
└───app
│ app.js
│ db.js
│ package.json
- Dockerfile: Contains the configuration to create a Docker image for the application.
- .env.example: An example environment file that contains key-value pairs for necessary environment variables. Before starting the application, you'll need to copy this file and name it as
.env. - docker-compose.yml: Docker Compose configuration file to run the entire application stack.
- app: This directory contains the main application logic.
- app.js: The main entry point for our application.
- db.js: Responsible for database operations.
- package.json: Contains metadata about the application and its dependencies.
- Clone the repository to your local machine:
git clone https://github.com/rtmedical/WhatsAppInSlack.git- Navigate into the project directory:
cd WhatsAppInSlack-
Copy the
.env.examplefile and name the copy as.env. Modify the necessary environment variables according to your setup. -
Using Docker Compose, build and run the application:
docker-compose up --buildThe application should now be up and running!
Before starting the application, ensure you have set up the environment variables in the .env file. Refer to .env.example for required variables.
Inside WhatsAppInSlack/app/db.js, you will find the following MongoDB connection URI:
const uri = "mongodb+srv://<username>:<password>@cluster-url/test?retryWrites=true&w=majority";We recommend using MongoDB Atlas for a hassle-free MongoDB hosting experience. They offer a free tier that is sufficient for most starter projects.
We love contributions! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new feature branch.
- Commit your changes.
- Push to your feature branch.
- Create a new Pull Request.
This project is licensed under the GNU GENERAL PUBLIC LICENSE. See the LICENSE file for details.
- To all the developers and contributors who made this project possible, thank you!
- This project utilizes several outstanding open-source libraries to achieve its functionalities:
- whatsapp-web.js: A high-level API to interact with WhatsApp Web.
- puppeteer: A headless Chrome browser provided by Chrome that can be used for rendering web pages and automating web browser interactions.
- @slack/events-api & @slack/web-api: Libraries to integrate and interact with the Slack platform.
- express: Fast, unopinionated, minimalist web framework for Node.js.
- mongodb: The official MongoDB driver for Node.js.
- axios: Promise-based HTTP client for the browser and Node.js.
- dotenv: Zero-dependency module that loads environment variables from a
.envfile intoprocess.env. - And many others. A complete list can be found in our package.json file.
- Special thanks to the open-source community for providing invaluable resources and inspiration.
For any additional information or questions, please open an issue in the repository. Happy coding! 🚀
