Skip to content

Commit

Permalink
Add webpack configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
damishshah committed Jan 21, 2020
1 parent 1f79daa commit 3bc5570
Show file tree
Hide file tree
Showing 10 changed files with 6,123 additions and 143 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
dist/
*.pem
.vscode
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Simple WebRTC video conferencing application

### Things to do

1. Set up js minification/bundling
1. Setup docker
2. Write tests
3. Setup automated docker build + deployment to ec2
4. Setup SSL cert
Expand All @@ -16,3 +16,6 @@ Simple WebRTC video conferencing application
3. Gracefully handle callers leaving
4. Allow fullscreen of videos
5. Allow user to move their local preview window

Operational Tasks:
1. Set up js minification/bundling
4 changes: 1 addition & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ <h1 style="display: inline;">Secure Video Chat With WebRTC</h1>
</div>

<!-- Theirs -->
<script src="/socket.io/socket.io.js"></script>
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
<!-- Mine -->
<script type="module" src="js/stunservers.js"></script>
<script type="module" src="js/main.js"></script>
<script type="module" src="dist/client.bundle.js"></script>
</body>
</html>
2 changes: 2 additions & 0 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ var chatWindow = document.querySelector('#chatWindow');
var footer = document.querySelector('#footer');
var toggleChatButton = document.querySelector('#toggleChat');
var toggleFullscreenButton = document.querySelector('#toggleFullscreen');

var remoteVideoObjectMap = new Map();
var io = require('socket.io-client');

var pcConfig = {
'iceServers': [{
Expand Down
Loading

0 comments on commit 3bc5570

Please sign in to comment.