Welcome to the WhatsApp Messaging UI project. This is a responsive React-based application that enables users to send and receive text messages on WhatsApp using the Green API service. It consists of two main pages: Chat and Login, hosted on GitHub Pages.
LIVE LINK : https://greenapi-4819e028c1ab.herokuapp.com/
This project was developed to create a user interface for interacting with WhatsApp messages through the Green API service.
- User Authentication:** Log in with your Green API credentials (
idInstanceandapiTokenInstance). - Message Sending & Receiving:** Send and receive text messages with WhatsApp contacts.
- Simple Design: Mimics web.whatsapp.com with minimal features for ease of use.
- Use the Green API service: Green API.
- Implement text message sending via SendMessage.
- Receive messages using the provided method: Receiving.
- Developed with React technology.
- Log in using Green API credentials.
- Enter a recipient's phone number to start a new chat.
- Type and send messages to recipients on WhatsApp.
- Recipients can reply through WhatsApp Messenger.
Follow these steps to run the project locally:
- Clone the repository:
git clone https://github.com/OTH21DEV/green_api
- Navigate to the project directory:
cd green_api - Install dependencies:
npm install
- Start the development server:
npm run dev
- Access the application:
Open your browser to http://localhost:5173.
This project includes unit and integration tests using Jest and React Testing Library to ensure the functionality of individual components and their interactions.
- Jest: A JavaScript testing framework for creating, running, and structuring tests.
- React Testing Library: A set of utilities to test React components without relying on implementation details.
The tests will check various aspects of the components such as rendering, user interactions, and expected outputs.
- To execute the test suite, run the following command:
npm run test:watch
- To check the coverage, run the following command:
npm run test:coverage