Run Docker
Open in Vscode DevContainer
OR,
docker-compose up
then attach container to vscode
yarn - to install node modules
yarn start - to compile ts to dist/.js and start node server
yarn dev - to run nodemon with ts-node src/.ts and develop in typescript
yarn watch - to run watchify watching public/index.js and create public/bundle.js
File: src/config.ts
server location: https://localhost:3000
3000 port for server connection
40000-40200 port for udp connection
Create AWS EC2 instance with Ubuntu Image
- Run "scripts/setup.sh" script to install necessary dependencies
- RUN "yarn" to install node_modules
- RUN "yarn start" or "tsc" to bundle ts-code to "dist" folder
- ** Need to update .env file for PRIVATE_IP, PUBLIC_IP and PORT
- ** "scripts/run.sh" updates .env file
- (Optional) Crontab for auto start dist/app.js on ec2 instance reboot/startup
- RUN "crontab -e" to open crontab editor
- Add "@reboot /home/ubuntu/media-soup-sfu/scripts/run.sh >> /home/ubuntu/cron.log"