Real -time scalable group chat app with uWebSockets, Redis, and Postgres
Using code?
node server.js
node consumer.jsAlso run local redis instance.
docker start redis-localAlso run local Postgres instance.
docker start local-pgDon't forget to change env variables to local redis and pg
SUPABASE_DB_URL=postgres://postgres:postgres@localhost:5432/messagesUsing containers to run server?
docker build -t server-local -f Dockerfile.server .
docker run --env-file .env-local -p 9001:9001 server-localRun local redis instance too.
pm2 start server.js -i <instance-num>Also run local redis instance. Change local vars to local redis host and port.
Check logs
pm2 logsStop all instances
pm2 stop allhttps://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