diff --git a/README.md b/README.md index 63e00a11..247b8094 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# MiroTalk +# MiroTalk P2P 🚀 `A free WebRTC browser-based video call, chat and screen sharing` 🚀 @@ -19,15 +19,13 @@ Powered by `WebRTC` using google Stun and [numb](http://numb.viagenie.ca/) Turn. Open the app with the following **supported browsers** & many more... -[//]: #![webrtc](www/images/webrtc.png) - -[![Foo](www/images/browsers.png)](https://mirotalk.herokuapp.com/) +[![Foo](public/images/browsers.png)](https://mirotalk.herokuapp.com/) ## https://mirotalk.herokuapp.com/
-[![mirotalk](www/images/preview.png)](https://mirotalk.herokuapp.com/) +[![mirotalk](public/images/preview.png)](https://mirotalk.herokuapp.com/) ## Features @@ -52,7 +50,7 @@ Open the app with the following **supported browsers** & many more... - Possibility to Change UI Themes - Right-click on the Video elements for more options - Direct `peer-to-peer` connection ensures the lowest latency thanks to `WebRTC` -- Supports [REST API](api/README.md) (Application Programming Interface) +- Supports [REST API](app/api/README.md) (Application Programming Interface) ## Demo @@ -128,7 +126,7 @@ If you want `MiroTalk` to be `reachable` from the `outside` of your local networ `demo` https://mirotalk.herokuapp.com/ -[![heroku-qr](www/images/mirotalk-heroku-qr.png)](https://mirotalk.herokuapp.com/) +[![heroku-qr](public/images/mirotalk-heroku-qr.png)](https://mirotalk.herokuapp.com/)
@@ -136,7 +134,7 @@ If you want `MiroTalk` to be `reachable` from the `outside` of your local networ `demo` https://mirotalk.up.railway.app/ -[![railway-qr](www/images/mirotalk-railway-qr.png)](https://mirotalk.up.railway.app/) +[![railway-qr](public/images/mirotalk-railway-qr.png)](https://mirotalk.up.railway.app/) --- @@ -163,7 +161,7 @@ From where I took inspiration for this project. ❤️ ## License -[![AGPLv3](www/images/AGPLv3.png)](LICENSE) +[![AGPLv3](public/images/AGPLv3.png)](LICENSE) --- diff --git a/api/README.md b/app/api/README.md similarity index 100% rename from api/README.md rename to app/api/README.md diff --git a/api/meeting.js b/app/api/meeting.js similarity index 100% rename from api/meeting.js rename to app/api/meeting.js diff --git a/api/meeting.php b/app/api/meeting.php similarity index 100% rename from api/meeting.php rename to app/api/meeting.php diff --git a/api/meeting.py b/app/api/meeting.py similarity index 100% rename from api/meeting.py rename to app/api/meeting.py diff --git a/api/meeting.sh b/app/api/meeting.sh similarity index 100% rename from api/meeting.sh rename to app/api/meeting.sh diff --git a/api/restAPI.png b/app/api/restAPI.png similarity index 100% rename from api/restAPI.png rename to app/api/restAPI.png diff --git a/api/swagger.yaml b/app/api/swagger.yaml similarity index 100% rename from api/swagger.yaml rename to app/api/swagger.yaml diff --git a/Logger.js b/app/src/Logger.js similarity index 100% rename from Logger.js rename to app/src/Logger.js diff --git a/server.js b/app/src/server.js similarity index 96% rename from server.js rename to app/src/server.js index 366d8088..6b02c99f 100755 --- a/server.js +++ b/app/src/server.js @@ -61,8 +61,8 @@ let io, server, host; if (isHttps) { const fs = require('fs'); const options = { - key: fs.readFileSync(path.join(__dirname, '/ssl/key.pem'), 'utf-8'), - cert: fs.readFileSync(path.join(__dirname, '/ssl/cert.pem'), 'utf-8'), + key: fs.readFileSync(path.join(__dirname, '../ssl/key.pem'), 'utf-8'), + cert: fs.readFileSync(path.join(__dirname, '../ssl/cert.pem'), 'utf-8'), }; server = https.createServer(options, app); io = new Server().listen(server); @@ -76,7 +76,7 @@ if (isHttps) { const ngrok = require('ngrok'); const yamlJS = require('yamljs'); const swaggerUi = require('swagger-ui-express'); -const swaggerDocument = yamlJS.load(path.join(__dirname + '/api/swagger.yaml')); +const swaggerDocument = yamlJS.load(path.join(__dirname + '/../api/swagger.yaml')); const { v4: uuidV4 } = require('uuid'); const apiBasePath = '/api/v1'; // api endpoint path @@ -96,8 +96,8 @@ let channels = {}; // collect channels let sockets = {}; // collect sockets let peers = {}; // collect peers info grp by channels -// Use all static files from the www folder -app.use(express.static(path.join(__dirname, 'www'))); +// Use all static files from the public folder +app.use(express.static(path.join(__dirname, '../../', 'public'))); // Api parse body data as json app.use(express.json()); @@ -122,27 +122,27 @@ app.use((err, req, res, next) => { /* app.get(["/"], (req, res) => { - res.sendFile(path.join(__dirname, "www/client.html")) + res.sendFile(path.join(__dirname, "public/view/client.html")) }); */ // all start from here app.get(['/'], (req, res) => { - res.sendFile(path.join(__dirname, 'www/landing.html')); + res.sendFile(path.join(__dirname, '../../', 'public/view/landing.html')); }); // set new room name and join app.get(['/newcall'], (req, res) => { - res.sendFile(path.join(__dirname, 'www/newcall.html')); + res.sendFile(path.join(__dirname, '../../', 'public/view/newcall.html')); }); // if not allow video/audio app.get(['/permission'], (req, res) => { - res.sendFile(path.join(__dirname, 'www/permission.html')); + res.sendFile(path.join(__dirname, '../../', 'public/view/permission.html')); }); // privacy policy app.get(['/privacy'], (req, res) => { - res.sendFile(path.join(__dirname, 'www/privacy.html')); + res.sendFile(path.join(__dirname, '../../', 'public/view/privacy.html')); }); // no room name specified to join @@ -156,7 +156,7 @@ app.get('/join/*', (req, res) => { log.debug('redirect:' + req.url + ' to ' + url.parse(req.url).pathname); res.redirect(url.parse(req.url).pathname); } else { - res.sendFile(path.join(__dirname, 'www/client.html')); + res.sendFile(path.join(__dirname, '../../', 'public/view/client.html')); } }); diff --git a/ssl/README.md b/app/ssl/README.md similarity index 100% rename from ssl/README.md rename to app/ssl/README.md diff --git a/ssl/cert.pem b/app/ssl/cert.pem similarity index 100% rename from ssl/cert.pem rename to app/ssl/cert.pem diff --git a/ssl/https.png b/app/ssl/https.png similarity index 100% rename from ssl/https.png rename to app/ssl/https.png diff --git a/ssl/key.pem b/app/ssl/key.pem similarity index 100% rename from ssl/key.pem rename to app/ssl/key.pem diff --git a/package.json b/package.json index 09b5bd69..eb377898 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "A free WebRTC browser-based video call", "main": "server.js", "scripts": { - "start": "node server.js", + "start": "node app/src/server.js", "test": "echo \"Error: no test specified\" && exit 1", "lint": "npx prettier --write ." }, diff --git a/www/css/client.css b/public/css/client.css similarity index 100% rename from www/css/client.css rename to public/css/client.css diff --git a/www/css/landing.css b/public/css/landing.css similarity index 100% rename from www/css/landing.css rename to public/css/landing.css diff --git a/www/css/newcall.css b/public/css/newcall.css similarity index 100% rename from www/css/newcall.css rename to public/css/newcall.css diff --git a/www/css/whiteboard.css b/public/css/whiteboard.css similarity index 100% rename from www/css/whiteboard.css rename to public/css/whiteboard.css diff --git a/www/images/AGPLv3.png b/public/images/AGPLv3.png similarity index 100% rename from www/images/AGPLv3.png rename to public/images/AGPLv3.png diff --git a/www/images/about.png b/public/images/about.png similarity index 100% rename from www/images/about.png rename to public/images/about.png diff --git a/www/images/audio-off.png b/public/images/audio-off.png similarity index 100% rename from www/images/audio-off.png rename to public/images/audio-off.png diff --git a/www/images/bg.svg b/public/images/bg.svg similarity index 100% rename from www/images/bg.svg rename to public/images/bg.svg diff --git a/www/images/browsers.png b/public/images/browsers.png similarity index 100% rename from www/images/browsers.png rename to public/images/browsers.png diff --git a/www/images/cam-off.png b/public/images/cam-off.png similarity index 100% rename from www/images/cam-off.png rename to public/images/cam-off.png diff --git a/www/images/delete.png b/public/images/delete.png similarity index 100% rename from www/images/delete.png rename to public/images/delete.png diff --git a/www/images/favicon.ico b/public/images/favicon.ico similarity index 100% rename from www/images/favicon.ico rename to public/images/favicon.ico diff --git a/www/images/favicon.png b/public/images/favicon.png similarity index 100% rename from www/images/favicon.png rename to public/images/favicon.png diff --git a/www/images/feature-tile-icon-01.svg b/public/images/feature-tile-icon-01.svg similarity index 100% rename from www/images/feature-tile-icon-01.svg rename to public/images/feature-tile-icon-01.svg diff --git a/www/images/feature-tile-icon-02.svg b/public/images/feature-tile-icon-02.svg similarity index 100% rename from www/images/feature-tile-icon-02.svg rename to public/images/feature-tile-icon-02.svg diff --git a/www/images/feature-tile-icon-03.svg b/public/images/feature-tile-icon-03.svg similarity index 100% rename from www/images/feature-tile-icon-03.svg rename to public/images/feature-tile-icon-03.svg diff --git a/www/images/feature-tile-icon-04.svg b/public/images/feature-tile-icon-04.svg similarity index 100% rename from www/images/feature-tile-icon-04.svg rename to public/images/feature-tile-icon-04.svg diff --git a/www/images/feature-tile-icon-05.svg b/public/images/feature-tile-icon-05.svg similarity index 100% rename from www/images/feature-tile-icon-05.svg rename to public/images/feature-tile-icon-05.svg diff --git a/www/images/feature-tile-icon-06.svg b/public/images/feature-tile-icon-06.svg similarity index 100% rename from www/images/feature-tile-icon-06.svg rename to public/images/feature-tile-icon-06.svg diff --git a/www/images/github.png b/public/images/github.png similarity index 100% rename from www/images/github.png rename to public/images/github.png diff --git a/www/images/illustration-section-01.svg b/public/images/illustration-section-01.svg similarity index 100% rename from www/images/illustration-section-01.svg rename to public/images/illustration-section-01.svg diff --git a/www/images/illustration-section-02.svg b/public/images/illustration-section-02.svg similarity index 100% rename from www/images/illustration-section-02.svg rename to public/images/illustration-section-02.svg diff --git a/www/images/image-placeholder.svg b/public/images/image-placeholder.svg similarity index 100% rename from www/images/image-placeholder.svg rename to public/images/image-placeholder.svg diff --git a/www/images/leave-room.png b/public/images/leave-room.png similarity index 100% rename from www/images/leave-room.png rename to public/images/leave-room.png diff --git a/www/images/loader.gif b/public/images/loader.gif similarity index 100% rename from www/images/loader.gif rename to public/images/loader.gif diff --git a/www/images/locked.png b/public/images/locked.png similarity index 100% rename from www/images/locked.png rename to public/images/locked.png diff --git a/www/images/logo.svg b/public/images/logo.svg similarity index 100% rename from www/images/logo.svg rename to public/images/logo.svg diff --git a/www/images/message.png b/public/images/message.png similarity index 100% rename from www/images/message.png rename to public/images/message.png diff --git a/www/images/miroslav-pejic.png b/public/images/miroslav-pejic.png similarity index 100% rename from www/images/miroslav-pejic.png rename to public/images/miroslav-pejic.png diff --git a/www/images/mirotalk-heroku-qr.png b/public/images/mirotalk-heroku-qr.png similarity index 100% rename from www/images/mirotalk-heroku-qr.png rename to public/images/mirotalk-heroku-qr.png diff --git a/www/images/mirotalk-railway-qr.png b/public/images/mirotalk-railway-qr.png similarity index 100% rename from www/images/mirotalk-railway-qr.png rename to public/images/mirotalk-railway-qr.png diff --git a/www/images/mirotalk.png b/public/images/mirotalk.png similarity index 100% rename from www/images/mirotalk.png rename to public/images/mirotalk.png diff --git a/www/images/preview.png b/public/images/preview.png similarity index 100% rename from www/images/preview.png rename to public/images/preview.png diff --git a/www/images/share.png b/public/images/share.png similarity index 100% rename from www/images/share.png rename to public/images/share.png diff --git a/www/images/webrtc.png b/public/images/webrtc.png similarity index 100% rename from www/images/webrtc.png rename to public/images/webrtc.png diff --git a/www/images/youtube.png b/public/images/youtube.png similarity index 100% rename from www/images/youtube.png rename to public/images/youtube.png diff --git a/www/js/client.js b/public/js/client.js similarity index 100% rename from www/js/client.js rename to public/js/client.js diff --git a/www/js/landing.js b/public/js/landing.js similarity index 100% rename from www/js/landing.js rename to public/js/landing.js diff --git a/www/js/newroom.js b/public/js/newroom.js similarity index 100% rename from www/js/newroom.js rename to public/js/newroom.js diff --git a/www/robots.txt b/public/robots.txt similarity index 100% rename from www/robots.txt rename to public/robots.txt diff --git a/www/sounds/addPeer.mp3 b/public/sounds/addPeer.mp3 similarity index 100% rename from www/sounds/addPeer.mp3 rename to public/sounds/addPeer.mp3 diff --git a/www/sounds/chatMessage.mp3 b/public/sounds/chatMessage.mp3 similarity index 100% rename from www/sounds/chatMessage.mp3 rename to public/sounds/chatMessage.mp3 diff --git a/www/sounds/download.mp3 b/public/sounds/download.mp3 similarity index 100% rename from www/sounds/download.mp3 rename to public/sounds/download.mp3 diff --git a/www/sounds/error.mp3 b/public/sounds/error.mp3 similarity index 100% rename from www/sounds/error.mp3 rename to public/sounds/error.mp3 diff --git a/www/sounds/kickedOut.mp3 b/public/sounds/kickedOut.mp3 similarity index 100% rename from www/sounds/kickedOut.mp3 rename to public/sounds/kickedOut.mp3 diff --git a/www/sounds/locked.mp3 b/public/sounds/locked.mp3 similarity index 100% rename from www/sounds/locked.mp3 rename to public/sounds/locked.mp3 diff --git a/www/sounds/newMessage.mp3 b/public/sounds/newMessage.mp3 similarity index 100% rename from www/sounds/newMessage.mp3 rename to public/sounds/newMessage.mp3 diff --git a/www/sounds/off.mp3 b/public/sounds/off.mp3 similarity index 100% rename from www/sounds/off.mp3 rename to public/sounds/off.mp3 diff --git a/www/sounds/on.mp3 b/public/sounds/on.mp3 similarity index 100% rename from www/sounds/on.mp3 rename to public/sounds/on.mp3 diff --git a/www/sounds/raiseHand.mp3 b/public/sounds/raiseHand.mp3 similarity index 100% rename from www/sounds/raiseHand.mp3 rename to public/sounds/raiseHand.mp3 diff --git a/www/sounds/recStart.mp3 b/public/sounds/recStart.mp3 similarity index 100% rename from www/sounds/recStart.mp3 rename to public/sounds/recStart.mp3 diff --git a/www/sounds/recStop.mp3 b/public/sounds/recStop.mp3 similarity index 100% rename from www/sounds/recStop.mp3 rename to public/sounds/recStop.mp3 diff --git a/www/sounds/removePeer.mp3 b/public/sounds/removePeer.mp3 similarity index 100% rename from www/sounds/removePeer.mp3 rename to public/sounds/removePeer.mp3 diff --git a/www/client.html b/public/view/client.html similarity index 97% rename from www/client.html rename to public/view/client.html index 9f808b35..b128efac 100755 --- a/www/client.html +++ b/public/view/client.html @@ -17,8 +17,8 @@ MiroTalk WebRTC Video call, Chat Room & Screen Sharing. - - + + @@ -42,14 +42,14 @@ - + - + - - + + @@ -445,7 +445,7 @@ access to use this app. - + diff --git a/www/landing.html b/public/view/landing.html similarity index 94% rename from www/landing.html rename to public/view/landing.html index 6e365af6..77b22d9f 100755 --- a/www/landing.html +++ b/public/view/landing.html @@ -17,8 +17,8 @@ MiroTalk a Free Secure Video Calls, Chat & Screen Sharing. - - + + @@ -44,12 +44,12 @@ property="og:description" content="MiroTalk calling provides real-time HD quality and latency simply not available with traditional technology." /> - + - +
@@ -58,7 +58,7 @@
- Neon + Neon
@@ -132,7 +132,7 @@
Screen Sharing
WebCam Streaming
Chat Room
Meeting Recording
Interactive Whiteboard
File Sharing
Total Privacy
Maximum Security
Supported Browsers
Team member author - + diff --git a/www/newcall.html b/public/view/newcall.html similarity index 93% rename from www/newcall.html rename to public/view/newcall.html index d0b48581..969aa183 100755 --- a/www/newcall.html +++ b/public/view/newcall.html @@ -17,8 +17,8 @@ MiroTalk ~ Create your Room name and start the new call. - - + + @@ -44,13 +44,13 @@ property="og:description" content="MiroTalk calling provides real-time HD quality and latency simply not available with traditional technology." /> - + - - + +
@@ -59,7 +59,7 @@
- Neon + Neon
@@ -128,7 +128,7 @@