Skip to content

Latest commit

 

History

History
64 lines (41 loc) · 1.89 KB

README.md

File metadata and controls

64 lines (41 loc) · 1.89 KB

Pyrrha WebSocket server

License Slack

This repository contains the Pyrrha solution that monitors the MQTT queue for new messages, stores them in the database, and in turn sends them to the Websocker Servers.

Setting up the solution

Prerequisites

  1. Docker
  2. IBM CLI
  3. Kubectl
  4. Helm
  5. Skaffold

Run locally with Node.js

  1. Install dependencies

    npm install
  2. Run server

    npm start

    This runs the WebSocket server using nodemon. See package.json file.

Running locally using docker

  1. Build the image and optionally tag

    docker build . -t ws
     STEP 1: FROM docker.io/node:12-alpine
     STEP 2: WORKDIR /
     --> ce0dd4bfad1
     STEP 3: COPY package*.json ./
  2. Run the image

    docker run --name ws ws:latest

Running on Kubernetes

  1. Please read KUBERNETES_SETUP.md for details on how to deploy using Kubernetes.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting Pyrrha pull requests.

License

This project is licensed under the Apache 2 License - see the LICENSE file for details.