Skip to content

join-a-groupchat/prototype-rtc-js

Repository files navigation

prototype-rtc-js

Real -time scalable group chat app with uWebSockets, Redis, and Postgres

How to run (Local) >>

Using code?

node server.js

node consumer.js

Also run local redis instance.

docker start redis-local

Also run local Postgres instance.

docker start local-pg

Don't forget to change env variables to local redis and pg

SUPABASE_DB_URL=postgres://postgres:postgres@localhost:5432/messages

Using containers to run server?

docker build -t server-local -f Dockerfile.server .

docker run --env-file .env-local -p 9001:9001 server-local

Run local redis instance too.

How to run (PM2 Multiple Instances) >>

pm2 start server.js -i <instance-num>

Also run local redis instance. Change local vars to local redis host and port.

Check logs

pm2 logs

Stop all instances

pm2 stop all

Testing?

https://www.youtube.com/watch?v=jgpVdJB2sKQ

aks tutorial https://www.youtube.com/watch?v=dkPsslnKK1Y

network chuck kubernetes https://www.youtube.com/watch?v=7bA0gTroJjw

create aks cluter in azure https://www.youtube.com/watch?v=RUoejLILgyA

About

Real -time scalable group chat app with uWebSockets, Redis, and Postgres

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published