Giter Site home page Giter Site logo

miro-breakout-chat-app's Introduction

Miro Breakout Chat App

Add multiple local chats to you Miro board. Uses WebSockets and Miro Web SDK.

Miro Breakout Chat App

Structure

  • NodeJS backend. Uses socket.io to set up the communication channel
  • Svelte + TypeScript frontend

Start-up

  1. Get your client id as described here and save it in the ./frontend/.env file (use .env_example as a template)

  2. Install packages and run

  • If you have Docker, just launch first-run.sh - it will run npm install in both backend and frontend folders and then run docker-compose up -d (application folders including node_modules are mounted to containers to provide live reloading). Next time, you can just run docker-compose up -d in your root folder. Use docker-compose down to stop containers.

  • If you don't have Docker, run npm install && npm run dev in 2 parallel instances of the terminal from both backend and frontend folders.

  1. If everything goes well, you should see a webpage at http://localhost (also an empty array should be returned if you GET http://localhost:8081/rooms - this is an endpoint to get current chat rooms).

Connecting to Miro

In Miro go to your profile settings, open the "API, SDK & Embed" tab and click on your app. There:

  • set up the web-plugin URL to http://localhost/init - this is the app entrypoint served by the frontend application (see ./frontend/src/init and ./frontend/public/init). This is enough for development purposes. Don't forget to change it to a real URL, once you publish your application.
  • choose boards:read, boards:write and identity:read in the "OAuth scopes" section
  • if you want to let others authenticate your application (this is required for other users to start using the app), set the Redirect URLs to https://{YOUR APP HOST}/auth-success.html

Notes

Backend server host is set in the ./frontend/.env file.

miro-breakout-chat-app's People

Contributors

viktor-r-miro avatar vicrazumov 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.