Add testing application for OpenVidu Meet with room management and webhook handling
This commit is contained in:
parent
28f8a54b80
commit
2645455b50
26
README.md
26
README.md
@ -8,7 +8,8 @@
|
|||||||
- [2. Prepare the Project](#2-prepare-the-project)
|
- [2. Prepare the Project](#2-prepare-the-project)
|
||||||
- [3. Start the Backend](#3-start-the-backend)
|
- [3. Start the Backend](#3-start-the-backend)
|
||||||
- [4. Start the Frontend](#4-start-the-frontend)
|
- [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)
|
- [Build the Backend Image](#build-the-backend-image)
|
||||||
- [Run the Backend Container](#run-the-backend-container)
|
- [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).
|
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 (with docker)
|
||||||
|
|
||||||
### Build the backend image
|
### Build the backend image
|
||||||
|
|||||||
@ -38,7 +38,7 @@ app.post('/join-room', joinRoom);
|
|||||||
app.post('/webhook', (req, res) => {
|
app.post('/webhook', (req, res) => {
|
||||||
handleWebhook(req, res, io);
|
handleWebhook(req, res, io);
|
||||||
});
|
});
|
||||||
const PORT = process.env.PORT || 5000;
|
const PORT = process.env.PORT || 5080;
|
||||||
server.listen(PORT, () => {
|
server.listen(PORT, () => {
|
||||||
console.log(`Listening on http://localhost:${PORT}`);
|
console.log(`Listening on http://localhost:${PORT}`);
|
||||||
});
|
});
|
||||||
Loading…
x
Reference in New Issue
Block a user