Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.02 KB

development.md

File metadata and controls

37 lines (28 loc) · 1.02 KB

This guide runs through how to setup your local development to contribute to this library. If you are just looking to use this library, see the documentation here.

Server

To develop on the server-side library using npm link:

# enter the server side library folder
cd server
# link the local code to npm
npm link

# then, enter your project folder
cd /PATH/TO/YOUR/PROJECT/FOLDER
# and complete the link to the local copy of the server library
npm link simple-mediasoup-peer-server

Client

To develop on the client-side library (simple-mediasoup-peer-client):

# enter the client side library folder
cd client
# start the build system and a local development server
npm run dev

Finally, in your index.html code, you will need to load the client-side library from the local development server

<script
    src="http://localhost:9000/SimpleMediasoupPeer.js"
    type="text/javascript"
></script>