GithubHelp home page GithubHelp logo

mattermost-app-figma's Introduction

Figma App

A Figma app for Mattermost.

Notes

  1. Currently not working due to Figma API problems with webhooks. FILE_COMMENT webhook is not working. Ticket for Figma team is created. Investigation is in progress;
  2. Due to API call limit notify file owner logic and preselect team id during subscribe logic should be removed;

First steps

Setting up

  1. Run Mattermost server https://github.com/mattermost/mattermost-server/blob/master/README.md
  2. Install/Enable Apps plugin https://github.com/mattermost/mattermost-plugin-apps
  3. Register a figma app - https://www.figma.com/developers/api#register-oauth2
    • as a callback url use - http://MM_INSTANCE__ROOT_URL/plugins/com.mattermost.apps/apps/figma/oauth2/remote/complete
    • Copy the client secret for a future step
  4. Run Figma integration server app
    • Run docker-compose up in the root of the Figma App repository
  5. In mattermost channel run /apps install http http://localhost:8080/manifest.json

Link MM account with Figma

  1. Run command /figma configure and provide client id and client secret from register a figma app step https://www.figma.com/developers/apps
  2. Run command /figma connect and open link from bot response for linking mm with figma account

Usage

  1. Run command /figma subscribe for notifications from figma project or file.
    Note: For this you will need to provide a team id.
    The only way for this it's copy it from Figma url https://www.figma.com/files/team/{team_id}/{team_name}
    Forum topics regarding this:
  2. Run command /figma list for subscriptions in current channel

Building aws bundle

In project root run command ./mvnw clean install -Paws-bundle

Bundle figma-aws-bundle.zip will be inside target folder

Deploy aws bundle with appsctl

https://developers.mattermost.com/integrate/apps/deploy/deploy-aws/

go run ./cmd/appsctl aws deploy -v figma-aws-bundle.zip

Lambda configuration

Increase RAM and timeout ( Lambda -> Configuration -> General Configuration)

Add environmental variable ENCRYPTION_KEY for data encryption in KV ( Lambda-> Configuration -> Environment variables)

mattermost-app-figma's People

Contributors

hanzei avatar ostapmelnychuk avatar

Stargazers

Saturnino Abril avatar

Watchers

Jesús Espino avatar Pantelis Vratsalis avatar Maria A Nunez avatar Christopher Poile avatar Guillermo Vayá avatar Agniva De Sarker avatar Daniel Espino García avatar Stavros Foteinopoulos avatar William Gathoye avatar Gabe Jackson avatar Mir Shahriar Sabuj avatar Doug Lauder avatar Elias Nahum avatar Corey R avatar Tanmay Singh avatar Pablo Vélez avatar Asaad Mahmood avatar Mario Vitale avatar Caleb Roseland avatar Scott Bishel avatar Nathaniel Allred avatar  avatar  avatar na avatar Maxwell Power avatar  avatar

Forkers

ostapmelnychuk

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.