Add testing application for OpenVidu Meet with room management and webhook handling

This commit is contained in:
Carlos Santos 2025-03-12 11:28:20 +01:00
parent 28f8a54b80
commit 2645455b50
12 changed files with 26 additions and 2 deletions

View File

@ -8,7 +8,8 @@
- [2. Prepare the Project](#2-prepare-the-project)
- [3. Start the Backend](#3-start-the-backend)
- [4. Start the Frontend](#4-start-the-frontend)
3. [Build (with Docker)](#build-with-docker)
3. [Testing](#testing)
4. [Build (with Docker)](#build-with-docker)
- [Build the Backend Image](#build-the-backend-image)
- [Run the Backend Container](#run-the-backend-container)
@ -73,6 +74,29 @@ This command will build the frontend application and move the files to the backe
After running these commands, you can access the frontend application at [http://localhost:6080](http://localhost:6080).
## Testing
This repository offers a testing application that allows you to test the OpenVidu Meet.
To run the testing application, follow these steps under the root directory:
1. Install the dependencies:
```bash
cd testapp && \
npm install
```
2. Start the testing application:
```bash
npm run start
```
After running these commands, you can access the testing application at [http://localhost:5080](http://localhost:5080).
## Build (with docker)
### Build the backend image

View File

@ -38,7 +38,7 @@ app.post('/join-room', joinRoom);
app.post('/webhook', (req, res) => {
handleWebhook(req, res, io);
});
const PORT = process.env.PORT || 5000;
const PORT = process.env.PORT || 5080;
server.listen(PORT, () => {
console.log(`Listening on http://localhost:${PORT}`);
});