Git Product home page Git Product logo

slack-spring-boot-starter's Introduction

Slack Spring Boot

slack spring boot starter measure?project=com.kreait version 1.0.0.RC1 fffff measure?project=com.kreait 523866370778333184 stackoverflow slack informational

Find our documentation on https://slack-spring-boot.kreait.dev/

Create a Spring Boot Application

Create a new spring boot application for example on https://start.spring.io (best to use kotlin and gradle for this example)

Add the following to your build.gradle file

dependencies {
    implementation(group: "com.kreait.slack", name: "slack-spring-boot-starter", version: "{version}")
 }

Credentials

Locate your app credentials under the Basic Information menu item on https://api.slack.com/apps (select your app) By default there is 3 ways adding your slack credentials to the application

  1. Create a file $HOME/.slack/credentials

    slack_app_client_id=<client_id>
    slack_app_client_secret=<client_secret>
    slack_app_signing_secret=<signing secret>
  2. Set Environment Variables

    SLACK_APP_CLIENT_ID=<client_id>
    SLACK_APP_CLIENT_SECRET=<client_secret>
    SLACK_APP_SIGNING_SECRET=<signing secret>
  3. Set JVM System Properties

    slack.application.client-id=<client_id>
    slack.application.client-secret=<client_secret>
    slack.application.signing=<signing secret>

If you want to provide your own CredentialsProvider implement the interface and expose it as a Bean/Component

Start your application

./gradlew bootRun

Contributing

To contribute to the project, please read the Contribution Guidelines

slack-spring-boot-starter's People

Contributors

bendenger avatar jpostholt avatar marvinschramm 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.