diff --git a/README.md b/README.md index b45d12d..f08a1ed 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/frontend/webcomponent/tests/app/.env b/testapp/.env similarity index 100% rename from frontend/webcomponent/tests/app/.env rename to testapp/.env diff --git a/frontend/webcomponent/tests/app/controllers/ videoRoomController.js b/testapp/controllers/ videoRoomController.js similarity index 100% rename from frontend/webcomponent/tests/app/controllers/ videoRoomController.js rename to testapp/controllers/ videoRoomController.js diff --git a/frontend/webcomponent/tests/app/controllers/homeController.js b/testapp/controllers/homeController.js similarity index 100% rename from frontend/webcomponent/tests/app/controllers/homeController.js rename to testapp/controllers/homeController.js diff --git a/frontend/webcomponent/tests/app/package-lock.json b/testapp/package-lock.json similarity index 100% rename from frontend/webcomponent/tests/app/package-lock.json rename to testapp/package-lock.json diff --git a/frontend/webcomponent/tests/app/package.json b/testapp/package.json similarity index 100% rename from frontend/webcomponent/tests/app/package.json rename to testapp/package.json diff --git a/frontend/webcomponent/tests/app/public/css/home.css b/testapp/public/css/home.css similarity index 100% rename from frontend/webcomponent/tests/app/public/css/home.css rename to testapp/public/css/home.css diff --git a/frontend/webcomponent/tests/app/public/css/videoRoom.css b/testapp/public/css/videoRoom.css similarity index 100% rename from frontend/webcomponent/tests/app/public/css/videoRoom.css rename to testapp/public/css/videoRoom.css diff --git a/frontend/webcomponent/tests/app/public/js/videoRoom.js b/testapp/public/js/videoRoom.js similarity index 100% rename from frontend/webcomponent/tests/app/public/js/videoRoom.js rename to testapp/public/js/videoRoom.js diff --git a/frontend/webcomponent/tests/app/server.js b/testapp/server.js similarity index 96% rename from frontend/webcomponent/tests/app/server.js rename to testapp/server.js index 4675674..55f1e33 100644 --- a/frontend/webcomponent/tests/app/server.js +++ b/testapp/server.js @@ -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}`); }); diff --git a/frontend/webcomponent/tests/app/views/home.mustache b/testapp/views/home.mustache similarity index 100% rename from frontend/webcomponent/tests/app/views/home.mustache rename to testapp/views/home.mustache diff --git a/frontend/webcomponent/tests/app/views/videoRoom.mustache b/testapp/views/videoRoom.mustache similarity index 100% rename from frontend/webcomponent/tests/app/views/videoRoom.mustache rename to testapp/views/videoRoom.mustache