Giter Site home page Giter Site logo

rchat's Introduction

RChat

What is all this you say? I strongly suggest you to read the following gist before going ahead: https://gist.github.com/rahulk789/616643b75337f255c9403009456003d0
Implemented using node.js and socket.io ; This is an attempt to create a whatsapp clone.
run sudo npm i socket.io nodemon -g nodemon nodeServer/index.js <your browser> index.html \

image

Docker

You can also set up the server simply by running sudo docker compose up to create a docker image , run sudo docker build -t rchat-server-image . To run the docker image and access it on localhost sudo docker run -d -p 8000:8000 rchat-server-image For api image sudo docker run -d -p 4099:4099 rchat-api-deployment

K8s

To access it on kubernetes: sudo k0s kubectl apply -f k8s-deployment.yaml To delete the pod sudo k0s kubectl delete pod rchat-server-pod Run the following to check if the pod is running sudo k0s kubectl get pods Run the following to access the server service on localhost sudo k0s kubectl port-forward service/rchat-server-deployment 8000:8000 Run the following to access the api service on localhost sudo k0s kubectl port-forward service/rchat-api-deployment 4099:4099 To test scaling run the following with correct IP (or localhost) while true; do curl http://10.106.224.66:4099/ ; done;

Monitoring

To deploy grafana on k8s run: sudo k0s kubectl apply -f k8s-deployment.yaml Run the following to access grafana on localhost sudo k0s kubectl port-forward service/grafana 3000:3000 To deploy prometheus on k8s run: sudo k0s kubectl apply -f k8s-deployment.yaml Run the following to access prometheus on localhost sudo k0s kubectl port-forward service/prometheus-service 9090:8080

Fancy GUI

image

image

rchat's People

Contributors

rahulk789 avatar

Stargazers

Anukul Anand avatar

Watchers

 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.