Giter Site home page Giter Site logo

zoomclone's Introduction

Noom

Zoom Clone using NodeJS, WebRTC and Websockets.

Memo

프로젝트명 폴더 만들고 현재 경로에서 npm init -y

초기세팅 대충 하기 package.json 및 readme 설명 수정 및 추가

npm i nodemon -D

babel.config.json 파일 생성 nodemon.json src 폴더 생성 server.js

npm i @babel/core @babel/cli @babel/node @babel/preset-env -D .gitignore만들기 기본 node용 예외처리

nodemon.json에 명령어 추가 { "exec": "babel-node src/server.js" }

babel.config.json에 명령어 추가 { "presets": ["@babel/preset-env] }


npm i express pug

src/server.js 수정

npm run dev 하면 서버 돌아감

nodemon.json에 이렇게 수정하면 public 안에 파일들 수정해도 서버 재시작 안됨 { "ignore": ["src/public/*"], "exec": "babel-node src/server.js" }

http와 ws 서버 동시 사용

zoom 강의 1.2참조

http서버 위에 webSocket서버 만듬(당연히 항상 그래야하는건 아님. 하나만 필요시 그래도 됨) 이러는 이유는 우리의 서버를 만들고(보이게 노출) 그 다음 http서버 위에 ws 서버를 만들기 위해

http://localhost:3000 ws://localhost:3000

admin ui 사용법

서버 돌리기

private 브라우져에서 https://admin.socket.io/ 들어가기

서버 url : http://localhost:3000/admin

path : 없앰

connect

zoomclone's People

Contributors

a2athoth avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.